@cryptotaxi247 / infra-1 / commits / d40be61e

builders: init goofy-hopcroft.builder.nixos.org

Martin Weinelt committed Dec 31, 2024 at 22:10 UTC d40be61efa50a70023876f829a4da0895dd78513
6 files changed +76
build/hydra.nix
+2
@@ -151,6 +151,8 @@ in
151 # x86_64-linux at Hetzner
152 "elated-minsky.builder.nixos.org".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIvrJpd3aynfPVGGG/s7MtRFz/S6M4dtqvqKI3Da7O7+";
153 "sleepy-brown.builder.nixos.org".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOh4/3m7o6H3J5QG711aJdlSUVvlC8yW6KoqAES3Fy6I";
154 + # aarch64-linux at Hetzner
155 + "goofy-hopcroft.builder.nixos.org".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICTJEi+nQNd7hzNYN3cLBK/0JCkmwmyC1I+b5nMI7+dd";
156
157 # M1 Macs in North America
158 "*.foundation.detsys.dev" = {
build/pluto/prometheus/exporters/node.nix
+1
@@ -47,6 +47,7 @@
47 targets = [
48 "elated-minsky.builder.nixos.org:9100"
49 "sleepy-brown.builder.nixos.org:9100"
50 + "goofy-hopcroft.builder.nixos.org:9100"
51 ];
52 }
53 ];
builders/flake-module.nix
+3
@@ -30,5 +30,8 @@
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 sleepy-brown = mkNixOS "x86_64-linux" ./instances/sleepy-brown.nix;
33 +
34 + # Ampere Q80-30 (80C), 256 GB DDR4 RAM, 2x3.84TB PCIe4 NVME
35 + goofy-hopcroft = mkNixOS "aarch64-linux" ./instances/goofy-hopcroft.nix;
36 };
37 }
builders/instances/goofy-hopcroft.nix new
+40
@@ -0,0 +1,40 @@
1 +{
2 + imports = [
3 + ../profiles/hetzner-rx220.nix
4 + ];
5 +
6 + nix.settings = {
7 + cores = 2;
8 + max-jobs = 40;
9 + };
10 +
11 + networking = {
12 + hostName = "goofy-hopcroft";
13 + domain = "builders.nixos.org";
14 + useDHCP = false;
15 + };
16 +
17 + systemd.network = {
18 + enable = true;
19 + networks = {
20 + "30-enP3p2s0f0" = {
21 + matchConfig = {
22 + MACAddress = "74:56:3c:8c:01:a9";
23 + Type = "ether";
24 + };
25 + linkConfig.RequiredForOnline = true;
26 + networkConfig.Description = "WAN";
27 + address = [
28 + "135.181.225.104/26"
29 + "2a01:4f9:3071:2d8b::1/64"
30 + ];
31 + routes = [
32 + { Gateway = "135.181.225.65"; }
33 + { Gateway = "fe80::1"; }
34 + ];
35 + };
36 + };
37 + };
38 +
39 + system.stateVersion = "24.11";
40 +}
builders/profiles/hetzner-rx220.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
+10
@@ -228,6 +228,16 @@ locals {
228 type = "AAAA"
229 value = "2a01:4f8:271:5c14::1"
230 },
231 + {
232 + hostname = "goofy-hopcroft.builder.nixos.org"
233 + type = "A"
234 + value = "135.181.225.104"
235 + },
236 + {
237 + hostname = "goofy-hopcroft.builder.nixos.org"
238 + type = "AAAA"
239 + value = "2a01:4f9:3071:2d8b::1"
240 + },
241 {
242 # hetzner m1 1638981
243 hostname = "intense-heron.mac.nixos.org"