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,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) filterAttrs mkForce;
|
||||
inherit (lib) filterAttrs;
|
||||
flakes = filterAttrs (name: value: value ? outputs) inputs;
|
||||
in {
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
@ -24,8 +24,8 @@ in {
|
|||
builtins.mapAttrs
|
||||
(name: v: {flake = v;})
|
||||
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