refactor(nix): use nix.nixPath instead of env var

This commit is contained in:
winston 2023-09-01 14:47:48 +02:00
parent 494b42015f
commit 9b552d9b48
Signed by: winston
GPG key ID: 3786770EDBC2B481

View file

@ -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}";
}