[Nix] Use system nixpkgs and nixpkgs-unstable for nix commands

This commit is contained in:
Antoine Viallon 2023-04-27 09:41:03 +02:00
parent f4cf605c54
commit 8d3a3ee3e9
Signed by: aviallon
GPG key ID: 186FC35EDEB25716

View file

@ -1,4 +1,4 @@
{config, pkgs, lib, myLib, ...}:
{config, pkgs, lib, myLib, nixpkgs, nixpkgs-unstable, ...}:
with lib;
with myLib;
let
@ -99,5 +99,10 @@ in
nix.settings.cores = mkIf (generalCfg.cores != null) generalCfg.cores;
nix.settings.max-jobs = mkIf (generalCfg.cores != null) (math.log2 generalCfg.cores);
nix.registry = {
nixpkgs.flake = nixpkgs;
nixpkgs-unstable.flake = nixpkgs-unstable;
};
};
}