summary refs log tree commit diff stats
path: root/system
diff options
context:
space:
mode:
authorAlan Pearce2022-06-13 15:31:46 +0200
committerAlan Pearce2022-06-13 15:31:46 +0200
commita42f481fa3e97a70c8fb5bbd33324003364a4a82 (patch)
tree041c2961e67a83329b0a790af72185e0d6093b03 /system
parente013bfb77a097ebc5e441f629c563e7b75f8f123 (diff)
downloadnixfiles-a42f481fa3e97a70c8fb5bbd33324003364a4a82.tar.lz
nixfiles-a42f481fa3e97a70c8fb5bbd33324003364a4a82.tar.zst
nixfiles-a42f481fa3e97a70c8fb5bbd33324003364a4a82.zip
nix: mark build dependencies to not be gc'ed
Diffstat (limited to 'system')
-rw-r--r--system/settings/configuration/nix.nix5
1 files changed, 5 insertions, 0 deletions
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;