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:
Bruno BELANYI 2023-02-24 09:26:06 +00:00
parent a99954b12a
commit 54a6be70c8

View file

@ -73,11 +73,8 @@ in
(lib.mkIf cfg.addToNixPath { (lib.mkIf cfg.addToNixPath {
nix.nixPath = [ nix.nixPath = [
"self=/etc/nix/inputs/self" "/etc/nix/inputs"
"pkgs=/etc/nix/inputs/pkgs"
"nur=/etc/nix/inputs/nur"
] ]
++ lib.optional cfg.overrideNixpkgs "nixpkgs=/etc/nix/inputs/nixpkgs"
++ options.nix.nixPath.default; ++ options.nix.nixPath.default;
}) })
]); ]);