From 42a634802344da8b00d58876a9d4b3c7a440911b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20B=C3=A4dorf?= Date: Mon, 6 Nov 2023 23:30:57 +0100 Subject: [PATCH] fix: set nix.registry to speed up nix shell calls --- modules/nix/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/nix/default.nix b/modules/nix/default.nix index 3f87f31..cba27db 100644 --- a/modules/nix/default.nix +++ b/modules/nix/default.nix @@ -21,6 +21,13 @@ gc.automatic = true; optimise.automatic = true; + registry = { + nixpkgs.flake = flake.inputs.nixpkgs; + unstable.flake = flake.inputs.nixpkgs-unstable; + master.flake = flake.inputs.nixpkgs-master; + system.flake = flake.self; + }; + settings = { # Improve nix store disk usage auto-optimise-store = true;