diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2023-02-04 17:00:59 +0100 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2023-02-04 17:00:59 +0100 |
commit | 2d50a76e993e8ffc66c8b8da820d6becd4b6677f (patch) | |
tree | 0fdab0a6aa93402aa1bf4ecf3f23fd51a33fd2b3 | |
parent | Dotfiles: Waybar: Add weather module (diff) | |
download | nixos-config-2d50a76e993e8ffc66c8b8da820d6becd4b6677f.tar.gz nixos-config-2d50a76e993e8ffc66c8b8da820d6becd4b6677f.tar.bz2 nixos-config-2d50a76e993e8ffc66c8b8da820d6becd4b6677f.zip |
Hosts: Use flake nixpkgs as system nixpkgs in nix-* cmds
-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"; |