@cryptotaxi247 / infra-1 / commits / 23f5acf1

Enable automatic GC on chef

Eelco Dolstra committed Mar 19, 2016 at 12:28 UTC 23f5acf14b59e8956ad968e93637e17a20614b34
1 file changed +3
delft/chef.nix
+3
@@ -42,4 +42,7 @@
42
43 };
44
45 + nix.gc.automatic = true;
46 + nix.gc.options = ''--max-freed "$((50 * 1024**3 - 1024 * $(df -P -k /nix/store | tail -n 1 | ${pkgs.gawk}/bin/awk '{ print $4 }')))"'';
47 +
48 }