refactor(nix): use nix.nixPath instead of env var
This commit is contained in:
parent
494b42015f
commit
9b552d9b48
1 changed files with 4 additions and 4 deletions
|
@ -4,7 +4,7 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (lib) filterAttrs mkForce;
|
inherit (lib) filterAttrs;
|
||||||
flakes = filterAttrs (name: value: value ? outputs) inputs;
|
flakes = filterAttrs (name: value: value ? outputs) inputs;
|
||||||
in {
|
in {
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
@ -24,8 +24,8 @@ in {
|
||||||
builtins.mapAttrs
|
builtins.mapAttrs
|
||||||
(name: v: {flake = v;})
|
(name: v: {flake = v;})
|
||||||
flakes;
|
flakes;
|
||||||
|
nixPath = [
|
||||||
|
{nixpkgs = "${inputs.nixpkgs.outPath}";}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# set nixPath to the flake nixpkgs without channels
|
|
||||||
environment.variables.NIX_PATH = mkForce "nixpkgs=${inputs.nixpkgs.outPath}";
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue