diff --git a/nix/nix.nix b/nix/nix.nix index b8a8e26..9386e1e 100644 --- a/nix/nix.nix +++ b/nix/nix.nix @@ -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; + }; + }; }