@cryptotaxi247 / infra-1 / commits / 07d651d0

Random GC times

Eelco Dolstra committed Mar 8, 2017 at 16:06 UTC 07d651d03b33a6bbb6b30555dda207633e4ee0c3
1 file changed +4
delft/build-machines-common.nix
+4
@@ -9,6 +9,10 @@ with lib;
9 nix.gc.dates = "03,09,15,21:15";
10 nix.gc.options = ''--max-freed "$((128 * 1024**3 - 1024 * $(df -P -k /nix/store | tail -n 1 | ${pkgs.gawk}/bin/awk '{ print $4 }')))"'';
11
12 + # Randomize GC start times do we don't block all build machines at
13 + # the same time.
14 + systemd.timers.nix-gc.timerConfig.RandomizedDelaySec = "1800";
15 +
16 users.extraUsers.root.openssh.authorizedKeys.keys = singleton
17 ''
18 command="nix-store --serve --write" ${readFile ./id_buildfarm.pub}