macs: make GC more aggressive
Eelco Dolstra committed
Nov 17, 2019 at 15:26 UTC
6e637cb3b5605b7564ecc9145ccbcf33eadc2e2f
1 file changed
+3
-3
macs/guest/darwin-configuration.nix
+3
-3
@@ -32,13 +32,13 @@ in
32
nix.buildCores = 1;
33
nix.gc.automatic = true;
34
nix.gc.options = let
35
- gbFree = 25;
35
+ gbFree = 50;
36
in "--max-freed $((${toString gbFree} * 1024**3 - 1024 * $(df -P -k /nix/store | tail -n 1 | awk '{ print $4 }')))";
37
38
# If we drop below 20GiB during builds, free 20GiB
39
nix.extraOptions = ''
40
- min-free = ${toString (20*1024*1024*1024)}
41
- max-free = ${toString (40*1024*1024*1024)}
40
+ min-free = ${toString (30*1024*1024*1024)}
41
+ max-free = ${toString (50*1024*1024*1024)}
42
'';
43
44
environment.etc."per-user/root/ssh/authorized_keys".text = concatStringsSep "\n"