aboutsummaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorene <ene@sils.li>2023-02-25 15:48:46 +0100
committerene <ene@sils.li>2023-02-25 15:48:46 +0100
commit77fef25f397cdce4267a7036116c4ccaae6ea1dd (patch)
tree850d12a436ddb2893c9510bffc2ca77aa35a5d68 /services
parentFix(packages): Add neovim (diff)
downloadnixos-config-77fef25f397cdce4267a7036116c4ccaae6ea1dd.zip
Fix(nix): Use the system nixpkgs version
This stops nix from downloading the newest one, every time I use `nix shell`
Diffstat (limited to 'services')
-rw-r--r--services/nix/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/services/nix/default.nix b/services/nix/default.nix
index 27f9b170..b0720788 100644
--- a/services/nix/default.nix
+++ b/services/nix/default.nix
@@ -2,6 +2,7 @@
config,
lib,
pkgs,
+ inputs,
...
}: {
nix = {
@@ -17,6 +18,10 @@
keep-failed = true; #keep failed tmp build dirs
pure-eval = true; # restrict file system and network access to hash
+
+ # Flakes settings
+ package = pkgs.nixVersions.stable;
+ registry.nixpkgs.flake = inputs.nixpkgs;
};
};
}