feat: nix module's specialArgs

This commit is contained in:
Ryan Yin 2023-10-04 15:05:42 +08:00
parent 7918e3d88e
commit 1d18061a1a
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -182,7 +182,7 @@ cat flake.nix
system = "x86_64-linux";
# 将所有 inputs 参数设为所有子模块的特殊参数,
# 这样就能在子模块中使用 helix 这个 inputs 了
# 这样就能直接在子模块中使用 inputs 中的 helix
specialArgs = inputs;
modules = [
./configuration.nix