From 38a6e5e084a0b455093e4093b1815550ec2d304e Mon Sep 17 00:00:00 2001 From: teutat3s Date: Thu, 16 Nov 2023 22:05:04 +0100 Subject: [PATCH] fix: add nix registry setting to speed up ad-hoc flake usage, e.g. via nix shell nixpkgs# --- modules/nix.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/nix.nix b/modules/nix.nix index c1e3218..906fbd6 100644 --- a/modules/nix.nix +++ b/modules/nix.nix @@ -14,6 +14,12 @@ gc.automatic = true; optimise.automatic = true; + registry = { + nixpkgs.flake = flake.inputs.nixpkgs; + unstable.flake = flake.inputs.unstable; + system.flake = flake.self; + }; + settings = { # Improve nix store disk usage auto-optimise-store = true; -- 2.44.1