diff options
Diffstat (limited to 'hosts/configuration.nix')
-rw-r--r-- | hosts/configuration.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hosts/configuration.nix b/hosts/configuration.nix index 9759095..ec000b0 100644 --- a/hosts/configuration.nix +++ b/hosts/configuration.nix @@ -198,8 +198,12 @@ }; }; + # Needed for nix-* commands to use the system's nixpkgs + environment.etc."channels/nixpkgs".source = inputs.nixpkgs.outPath; + nix = { registry.nixpkgs.flake = inputs.nixpkgs; + nixPath = [ "nixpkgs=/etc/channels/nixpkgs" "nixos-config=/etc/nixos/configuration.nix" "/nix/var/nix/profiles/per-user/root/channels" ]; gc = { automatic = true; dates = "daily"; |