@cryptotaxi247 / infra-1 / commits / 07de4460

macs: GC every hour

Graham Christensen committed Mar 25, 2020 at 01:01 UTC 07de446010eb9f00b6c484bc7ce9743a0f7d4468
1 file changed +1
macs/guest/darwin-configuration.nix
+1
@@ -31,6 +31,7 @@ in
31 nix.maxJobs = 4;
32 nix.buildCores = 1;
33 nix.gc.automatic = true;
34 + nix.gc.interval = { Minute = 15; };
35 nix.gc.options = let
36 gbFree = 50;
37 in "--max-freed $((${toString gbFree} * 1024**3 - 1024 * $(df -P -k /nix/store | tail -n 1 | awk '{ print $4 }')))";