modules: system: nix: preprend to 'NIX_PATH'

Instead of appending to the default value.

This makes overriding some values that are defined as the default value easier.
This commit is contained in:
Bruno BELANYI 2023-02-11 10:53:52 +00:00
parent 8dcc59d481
commit 26bf4e3631

View file

@ -35,11 +35,11 @@ in
})
(lib.mkIf cfg.addToNixPath {
nix.nixPath = options.nix.nixPath.default ++ [
nix.nixPath = [
"self=${inputs.self}"
"pkgs=${inputs.nixpkgs}"
"nur=${inputs.nur}"
];
++ options.nix.nixPath.default;
})
]);
}