From 77fef25f397cdce4267a7036116c4ccaae6ea1dd Mon Sep 17 00:00:00 2001 From: ene Date: Sat, 25 Feb 2023 15:48:46 +0100 Subject: Fix(nix): Use the system nixpkgs version This stops nix from downloading the newest one, every time I use `nix shell` --- services/nix/default.nix | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'services/nix') 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; }; }; } -- cgit 1.4.1