mirror of
https://github.com/ryan4yin/nixos-and-flakes-book.git
synced 2025-06-23 21:41:29 +02:00
fix: typo
This commit is contained in:
parent
cff6c24370
commit
f3145b8143
@ -314,7 +314,7 @@ Let's look at an example directly:
|
|||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
specialArgs = { enableFoo = true; };
|
specialArgs = { enableFoo = true; };
|
||||||
modules = [
|
modules = [
|
||||||
({config, lib, enableSteam ? false, ...}: {
|
({config, lib, enableFoo ? false, ...}: {
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
# Use lib.optionals to decide whether to import foo.nix
|
# Use lib.optionals to decide whether to import foo.nix
|
||||||
|
@ -325,7 +325,7 @@ Nixpkgs 中的模块系统提供了一系列类似 `lib.mkIf` 的函数,用于
|
|||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
specialArgs = { enableFoo = true; };
|
specialArgs = { enableFoo = true; };
|
||||||
modules = [
|
modules = [
|
||||||
({config, lib, enableSteam ? false, ...}: {
|
({config, lib, enableFoo ? false, ...}: {
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
# 通过 lib.optionals 来决定是否导入 foo.nix
|
# 通过 lib.optionals 来决定是否导入 foo.nix
|
||||||
|
Loading…
x
Reference in New Issue
Block a user