@cryptotaxi247 / infra-1 / commits / 87491d75

mimas: enable hydra

Martin Weinelt committed Dec 5, 2024 at 12:03 UTC 87491d751cdefff6420d16bb52753ac4499b1416
2 files changed +22
build/haumea/postgresql.nix
+1
@@ -89,6 +89,7 @@
89
90 # FIXME: don't use 'trust'.
91 authentication = ''
92 + host hydra all 10.254.1.1/32 trust
93 local all root peer map=prometheus
94 '';
95
build/mimas/default.nix
+21
@@ -1,6 +1,15 @@
1 +{
2 + pkgs,
3 + ...
4 +}:
5 +
6 {
7 imports = [
8 ../common.nix
9 + ../hydra.nix
10 + ../hydra-proxy.nix
11 + ../hydra-scaler.nix
12 + ../packet-importer.nix
13 ./boot.nix
14 ./network.nix
15 ];
@@ -13,5 +22,17 @@
22 hostId = "aba92093";
23 };
24
25 + # garbage collection
26 + nix.gc = {
27 + automatic = true;
28 + options = ''--max-freed "$((400 * 1024**3 - 1024 * $(df -P -k /nix/store | tail -n 1 | ${pkgs.gawk}/bin/awk '{ print $4 }')))"'';
29 + dates = "03,09,15,21:15";
30 + };
31 +
32 + # gc outputs as well, since they are served from the cache
33 + nix.settings.gc-keep-outputs = false;
34 +
35 + nixpkgs.hostPlatform = "x86_64-linux";
36 +
37 system.stateVersion = "24.11";
38 }