mirror of
https://github.com/ryan4yin/nixos-and-flakes-book.git
synced 2024-11-24 17:13:12 +01: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";
|
||||
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 New Issue
Block a user