@cryptotaxi247 / infra / commits / ba4b8ef6

builders: init elated-minsky.builder.nixos.org

Martin Weinelt committed Dec 31, 2024 at 22:06 UTC ba4b8ef6b9cc2e339dbbeb5e3e1d7f144ef00683
6 files changed +82
build/hydra.nix
+3
@@ -148,6 +148,9 @@ in
148
149 # These IPs and SSH public keys are specifically provisioned for Hydra
150 services.openssh.knownHosts = {
151 + # x86_64-linux at Hetzner
152 + "elated-minsky.builder.nixos.org".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIvrJpd3aynfPVGGG/s7MtRFz/S6M4dtqvqKI3Da7O7+";
153 +
154 # M1 Macs in North America
155 "*.foundation.detsys.dev" = {
156 certAuthority = true;
build/pluto/prometheus/exporters/node.nix
+6
@@ -42,6 +42,12 @@
42 "eager-heisenberg.mac.nixos.org:9100"
43 ];
44 }
45 + {
46 + labels.role = "builders";
47 + targets = [
48 + "elated-minsky.builder.nixos.org:9100"
49 + ];
50 + }
51 ];
52 }
53 ];
builders/flake-module.nix
+2
@@ -27,5 +27,7 @@
27 };
28 in
29 {
30 + # Epyc 9454P (48C/96T), 256 GB DDR4 RAM, 2x 1.92TB PCIe4 NVME
31 + elated-minsky = mkNixOS "x86_64-linux" ./instances/elated-minsky.nix;
32 };
33 }
builders/instances/elated-minsky.nix new
+40
@@ -0,0 +1,40 @@
1 +{
2 + imports = [
3 + ../profiles/hetzner-ax101r.nix
4 + ];
5 +
6 + nix.settings = {
7 + cores = 2;
8 + max-jobs = 48;
9 + };
10 +
11 + networking = {
12 + hostName = "elated-minsky";
13 + domain = "builders.nixos.org";
14 + useDHCP = false;
15 + };
16 +
17 + systemd.network = {
18 + enable = true;
19 + networks = {
20 + "30-enp193s0f0np0" = {
21 + matchConfig = {
22 + MACAddress = "9c:6b:00:4e:1a:6a";
23 + Type = "ether";
24 + };
25 + linkConfig.RequiredForOnline = true;
26 + networkConfig.Description = "WAN";
27 + address = [
28 + "167.235.95.99/26"
29 + "2a01:4f8:2220:1b03::1/64"
30 + ];
31 + routes = [
32 + { Gateway = "167.235.95.65"; }
33 + { Gateway = "fe80::1"; }
34 + ];
35 + };
36 + };
37 + };
38 +
39 + system.stateVersion = "24.11";
40 +}
builders/profiles/hetzner-ax101r.nix new
+20
@@ -0,0 +1,20 @@
1 +{
2 + imports = [
3 + ../boot/efi-grub.nix
4 + ];
5 +
6 + disko.devices = import ../disk-layouts/efi-zfs-raid0.nix { };
7 + boot.supportedFilesystems.zfs = true;
8 + networking.hostId = "91312b0a";
9 +
10 + # 96G for build roots, 160G for working memory
11 + boot.tmp = {
12 + useTmpfs = true;
13 + tmpfsSize = "96G";
14 + };
15 +
16 + boot.initrd.availableKernelModules = [
17 + "nvme"
18 + "usbhid"
19 + ];
20 +}
terraform/dns.tf
+11
@@ -206,6 +206,17 @@ locals {
206 type = "TXT"
207 value = "v=spf1 include:spf.improvmx.com include:_mailcust.gandi.net ~all"
208 },
209 + {
210 + # hetzner ax162-r 2548595
211 + hostname = "elated-minsky.builder.nixos.org"
212 + type = "A"
213 + value = "167.235.95.99"
214 + },
215 + {
216 + hostname = "elated-minsky.builder.nixos.org"
217 + type = "AAAA"
218 + value = "2a01:4f8:2220:1b03::1"
219 + },
220 {
221 # hetzner m1 1638981
222 hostname = "intense-heron.mac.nixos.org"