about summary refs log tree commit diff
path: root/hosts
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2023-02-04 17:00:59 +0100
committerBaitinq <manuelpalenzuelamerino@gmail.com>2023-02-04 17:00:59 +0100
commit2d50a76e993e8ffc66c8b8da820d6becd4b6677f (patch)
tree0fdab0a6aa93402aa1bf4ecf3f23fd51a33fd2b3 /hosts
parentDotfiles: Waybar: Add weather module (diff)
downloadnixos-config-2d50a76e993e8ffc66c8b8da820d6becd4b6677f.tar.gz
nixos-config-2d50a76e993e8ffc66c8b8da820d6becd4b6677f.tar.bz2
nixos-config-2d50a76e993e8ffc66c8b8da820d6becd4b6677f.zip
Hosts: Use flake nixpkgs as system nixpkgs in nix-* cmds
Diffstat (limited to 'hosts')
-rw-r--r--hosts/configuration.nix4
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";