From f3145b814394930f761635226041bf3f4e4e2973 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Fri, 8 Mar 2024 14:20:16 +0800 Subject: [PATCH] fix: typo --- docs/other-usage-of-flakes/module-system.md | 2 +- docs/zh/other-usage-of-flakes/module-system.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/other-usage-of-flakes/module-system.md b/docs/other-usage-of-flakes/module-system.md index 0ae7849..6b82eb9 100644 --- a/docs/other-usage-of-flakes/module-system.md +++ b/docs/other-usage-of-flakes/module-system.md @@ -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 diff --git a/docs/zh/other-usage-of-flakes/module-system.md b/docs/zh/other-usage-of-flakes/module-system.md index 864c8a6..f4a0ee7 100644 --- a/docs/zh/other-usage-of-flakes/module-system.md +++ b/docs/zh/other-usage-of-flakes/module-system.md @@ -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