update flakes arent real
This commit is contained in:
parent
c12a6dd830
commit
20934137a6
1 changed files with 6 additions and 0 deletions
|
|
@ -454,6 +454,12 @@ actually invoking `nixpkgs.lib.nixosSystem`. The latter is the much more
|
||||||
sinister part, and the reason I would strongly recommend inline modules with
|
sinister part, and the reason I would strongly recommend inline modules with
|
||||||
closures instead of `specialArgs`: they break flake composition.
|
closures instead of `specialArgs`: they break flake composition.
|
||||||
|
|
||||||
|
That being said, *either* using `specialArgs` *or* an inline module inside
|
||||||
|
`flake.nix`, rather than an option above, is the only way to inject module
|
||||||
|
imports. That is, if one uses some option like `imports = [ config.someOption
|
||||||
|
]`, it will cause an infinite recursion error. We would suggest putting the
|
||||||
|
imports inside an inline module inside `flake.nix` for this case.
|
||||||
|
|
||||||
To use `specialArgs`, an attribute set is passed into `nixpkgs.lib.nixosSystem`,
|
To use `specialArgs`, an attribute set is passed into `nixpkgs.lib.nixosSystem`,
|
||||||
which then land in the arguments of NixOS modules:
|
which then land in the arguments of NixOS modules:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue