From 8d3a3ee3e96bd58afd4d38265382332fab400ab8 Mon Sep 17 00:00:00 2001 From: Antoine Viallon Date: Thu, 27 Apr 2023 09:41:03 +0200 Subject: [PATCH] [Nix] Use system nixpkgs and nixpkgs-unstable for nix commands --- nix/nix.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; + }; + }; }