mirror of
https://github.com/ryan4yin/nixos-and-flakes-book
synced 2024-11-10 14:54:13 +00:00
fix: typo
This commit is contained in:
parent
cff6c24370
commit
f3145b8143
2 changed files with 2 additions and 2 deletions
|
@ -314,7 +314,7 @@ Let's look at an example directly:
|
|||
system = "x86_64-linux";
|
||||
specialArgs = { enableFoo = true; };
|
||||
modules = [
|
||||
({config, lib, enableSteam ? false, ...}: {
|
||||
({config, lib, enableFoo ? false, ...}: {
|
||||
imports =
|
||||
[
|
||||
# Use lib.optionals to decide whether to import foo.nix
|
||||
|
|
|
@ -325,7 +325,7 @@ Nixpkgs 中的模块系统提供了一系列类似 `lib.mkIf` 的函数,用于
|
|||
system = "x86_64-linux";
|
||||
specialArgs = { enableFoo = true; };
|
||||
modules = [
|
||||
({config, lib, enableSteam ? false, ...}: {
|
||||
({config, lib, enableFoo ? false, ...}: {
|
||||
imports =
|
||||
[
|
||||
# 通过 lib.optionals 来决定是否导入 foo.nix
|
||||
|
|
Loading…
Reference in a new issue