diff --git a/docs/nixos-with-flakes/nixos-with-flakes-enabled.md b/docs/nixos-with-flakes/nixos-with-flakes-enabled.md index 92a2299..396bccd 100644 --- a/docs/nixos-with-flakes/nixos-with-flakes-enabled.md +++ b/docs/nixos-with-flakes/nixos-with-flakes-enabled.md @@ -200,7 +200,7 @@ First, we need to add Helix as an input in `flake.nix`: system = "x86_64-linux"; # Set all input parameters as specialArgs of all sub-modules - # so that we can use the `helix` input in sub-modules + # so that we can use the `helix`(an attribute in inputs) in sub-modules directly. specialArgs = inputs; modules = [ ./configuration.nix diff --git a/docs/zh/nixos-with-flakes/nixos-with-flakes-enabled.md b/docs/zh/nixos-with-flakes/nixos-with-flakes-enabled.md index 6af42d0..fcf5385 100644 --- a/docs/zh/nixos-with-flakes/nixos-with-flakes-enabled.md +++ b/docs/zh/nixos-with-flakes/nixos-with-flakes-enabled.md @@ -182,7 +182,7 @@ cat flake.nix system = "x86_64-linux"; # 将所有 inputs 参数设为所有子模块的特殊参数, - # 这样就能在子模块中使用 helix 这个 inputs 了 + # 这样就能直接在子模块中使用 inputs 中的 helix 了 specialArgs = inputs; modules = [ ./configuration.nix