From a42f481fa3e97a70c8fb5bbd33324003364a4a82 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 13 Jun 2022 15:31:46 +0200 Subject: nix: mark build dependencies to not be gc'ed --- system/settings/configuration/nix.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/system/settings/configuration/nix.nix b/system/settings/configuration/nix.nix index 350cfb06..9927ce3d 100644 --- a/system/settings/configuration/nix.nix +++ b/system/settings/configuration/nix.nix @@ -8,6 +8,11 @@ trustedUsers = [ "@wheel" ]; + extraOptions = '' + keep-outputs = true + keep-derivations = true + ''; + autoOptimiseStore = true; gc = { automatic = true; -- cgit 1.4.1