From 7f6b0dfaeacd67102acf2070b036b994e1e8aa00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Thu, 16 Nov 2023 13:49:35 +0100 Subject: [PATCH] pin nixos-wide registry to nixpkgs used to build the machine itself Instead of downloading archives and filling up vm disk space we can juse the nixpkgs version we already use for evaluating --- lib/build-clan/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/build-clan/default.nix b/lib/build-clan/default.nix index f7d05b2d8..00cd42766 100644 --- a/lib/build-clan/default.nix +++ b/lib/build-clan/default.nix @@ -43,6 +43,12 @@ let clanCore.machineName = name; clanCore.clanDir = directory; nixpkgs.hostPlatform = lib.mkForce system; + + # speeds up nix commands by using the nixpkgs from the host system (especially useful in VMs) + nix.registry.nixpkgs.to = { + type = "path"; + path = lib.mkDefault nixpkgs; + }; } ]; inherit specialArgs;