@cryptotaxi247 / infra / commits / 60283864

rhea: enable more hydra pieces

Graham Christensen committed Mar 31, 2022 at 16:08 UTC 60283864b6ecc75a87941856fe9534bd7019b204
1 file changed +26 -4
delft/rhea/default.nix
+26 -4
@@ -4,10 +4,9 @@
4 [ ./hardware-configuration.nix
5 ./hetzner.nix
6 ../common.nix
7 -# ../hydra.nix
8 -# ../hydra-proxy.nix
9 -# ../fstrim.nix
10 -# ../packet-importer.nix
7 + ../hydra.nix
8 + ../hydra-proxy.nix
9 + ../packet-importer.nix
10 ];
11
12 # This is a Hetzner machine, but when trying to set this machine up
@@ -32,5 +31,28 @@
31
32 time.timeZone = lib.mkForce "UTC";
33 system.stateVersion = lib.mkForce "21.11";
34 +
35 + services.hydra-dev.dbi = "dbi:Pg:dbname=hydra;host=10.254.1.9;user=hydra;";
36 + systemd.services.hydra-init = {
37 + after = [ "wireguard-wg0.service" ];
38 + requires = [ "wireguard-wg0.service" ];
39 + };
40 + systemd.services.hydra-queue-runner = {
41 + serviceConfig.ManagedOOMPreference = "avoid";
42 + };
43 + services.hydra-dev.buildMachinesFiles = [ "/etc/nix/machines" ];
44 +
45 +# nix.gc.automatic = true;
46 +# nix.gc.options = ''--max-freed "$((400 * 1024**3 - 1024 * $(df -P -k /nix/store | tail -n 1 | ${pkgs.gawk}/bin/awk '{ print $4 }')))"'';
47 +# nix.gc.dates = "03,09,15,21:15";
48 +
49 + nix.extraOptions = "gc-keep-outputs = false";
50 +
51 + networking.defaultMailServer.directDelivery = lib.mkForce false;
52 + #services.postfix.enable = true;
53 + #services.postfix.hostname = "hydra.nixos.org";
54 +
55 + # Don't rate-limit the journal.
56 + services.journald.rateLimitBurst = 0;
57 }
58