pin nixos-wide registry to nixpkgs used to build the machine itself
All checks were successful
checks-impure / test (pull_request) Successful in 1m59s
checks / test (pull_request) Successful in 2m16s

Instead of downloading archives and filling up vm disk space we can juse the nixpkgs version we already use for evaluating
This commit is contained in:
Jörg Thalheim 2023-11-16 13:49:35 +01:00
parent d2fecd0a94
commit 7f6b0dfaea

View File

@ -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;