modules: system: nix: simplify 'NIX_PATH'
Since we now have an explicit 'pkgs' link, we can just add the folder with all linked inputs directly instead of adding them all manually.
This commit is contained in:
parent
a99954b12a
commit
54a6be70c8
|
@ -73,11 +73,8 @@ in
|
|||
|
||||
(lib.mkIf cfg.addToNixPath {
|
||||
nix.nixPath = [
|
||||
"self=/etc/nix/inputs/self"
|
||||
"pkgs=/etc/nix/inputs/pkgs"
|
||||
"nur=/etc/nix/inputs/nur"
|
||||
"/etc/nix/inputs"
|
||||
]
|
||||
++ lib.optional cfg.overrideNixpkgs "nixpkgs=/etc/nix/inputs/nixpkgs"
|
||||
++ options.nix.nixPath.default;
|
||||
})
|
||||
]);
|
||||
|
|
Loading…
Reference in a new issue