buildbot-nix: migrate master and worker from boron to iceman #1251

Merged
JakeHillion merged 1 commits from jj/xqmxzokxkxtt into main 2026-07-30 21:42:20 +01:00
16 changed files with 56 additions and 56 deletions

No files matched your search

+1 -17
View File
@@ -80,23 +80,7 @@
umount /reset-cache umount /reset-cache
''; '';
}; };
nix = { nix.settings.build-dir = "/cache/nix-builds/";
distributedBuilds = true;
settings = {
builders-use-substitutes = true;
build-dir = "/cache/nix-builds/";
};
buildMachines = [{
hostName = "slider.pop.${config.ogygia.domain}";
system = "aarch64-linux";
protocol = "ssh-ng";
maxJobs = 4;
speedFactor = 1;
supportedFeatures = [ "nixos-test" "big-parallel" "kvm" ];
sshUser = "nix-builder";
sshKey = "${config.custom.impermanence.base}/system/etc/ssh/ssh_host_ed25519_key";
}];
};
## Custom Services ## Custom Services
custom = { custom = {
@@ -27,6 +27,23 @@
instances = 8; instances = 8;
}; };
nix = {
distributedBuilds = true;
settings = {
builders-use-substitutes = true;
};
buildMachines = [{
hostName = "slider.pop.${config.ogygia.domain}";
system = "aarch64-linux";
protocol = "ssh-ng";
maxJobs = 4;
speedFactor = 1;
supportedFeatures = [ "nixos-test" "big-parallel" "kvm" ];
sshUser = "nix-builder";
sshKey = "${config.custom.impermanence.base}/system/etc/ssh/ssh_host_ed25519_key";
}];
};
## Syncthing ## Syncthing
custom.syncthing = { custom.syncthing = {
enable = true; enable = true;
@@ -27,7 +27,7 @@
custom.services.nix-remote-builder = { custom.services.nix-remote-builder = {
enable = true; enable = true;
authorizedHosts = [ authorizedHosts = [
"boron.cx.neb.jakehillion.me" "iceman.cx.neb.jakehillion.me"
JakeHillion marked this conversation as resolved Outdated
Outdated
Review

Should be replacing boron, not additive

Should be replacing boron, not additive
"maverick.cx.neb.jakehillion.me" "maverick.cx.neb.jakehillion.me"
"rooster.cx.neb.jakehillion.me" "rooster.cx.neb.jakehillion.me"
"bob.lt.neb.jakehillion.me" "bob.lt.neb.jakehillion.me"
+2 -2
View File
@@ -26,8 +26,8 @@ in
"cyclone.gw.${config.ogygia.domain}" "cyclone.gw.${config.ogygia.domain}"
"slider.pop.${config.ogygia.domain}" "slider.pop.${config.ogygia.domain}"
]; ];
buildbot-nix-master = "boron.cx.${config.ogygia.domain}"; buildbot-nix-master = "iceman.cx.${config.ogygia.domain}";
buildbot-nix-worker = "boron.cx.${config.ogygia.domain}"; buildbot-nix-worker = "iceman.cx.${config.ogygia.domain}";
awtrix-fireworks-tokens = "stinger.pop.${config.ogygia.domain}"; awtrix-fireworks-tokens = "stinger.pop.${config.ogygia.domain}";
awtrix-octopus-agile = "stinger.pop.${config.ogygia.domain}"; awtrix-octopus-agile = "stinger.pop.${config.ogygia.domain}";
blackmagic-cam-importer = "phoenix.st.${config.ogygia.domain}"; blackmagic-cam-importer = "phoenix.st.${config.ogygia.domain}";
+11 -6
View File
@@ -11,7 +11,7 @@ let
# Core counts per worker host. Add an entry when a new worker is added. # Core counts per worker host. Add an entry when a new worker is added.
workerCores = { workerCores = {
"boron.cx.${config.ogygia.domain}" = 16; "iceman.cx.${config.ogygia.domain}" = 32;
}; };
workersList = map workersList = map
@@ -170,12 +170,17 @@ in
}; };
}; };
# Ensure /var/lib/buildbot is owned by buildbot; impermanence creates # buildbot-master runs as the buildbot user with /var/lib/buildbot as its
# the bind-mount target as root. # home. StateDirectory makes systemd create and chown the directory during
systemd.tmpfiles.rules = [ "d /var/lib/buildbot 0750 buildbot buildbot - -" ]; # this service's own startup. systemd adds the path to RequiresMountsFor,
# so this is ordered after the impermanence bind-mount and the ownership
# fix cannot race it.
systemd.services.buildbot-master.serviceConfig = {
StateDirectory = "buildbot";
StateDirectoryMode = "0750";
};
# buildbot-master uses /var/lib/buildbot as its home; persist it across # Persist the home across impermanence reboots.
# impermanence reboots.
custom.impermanence.extraDirs = lib.mkIf config.custom.impermanence.enable [ custom.impermanence.extraDirs = lib.mkIf config.custom.impermanence.enable [
"/var/lib/buildbot" "/var/lib/buildbot"
]; ];
+9
View File
@@ -40,6 +40,15 @@ in
masterUrl = cfg.masterUrl; masterUrl = cfg.masterUrl;
}; };
# The worker runs as buildbot-worker with /var/lib/buildbot-worker as its
# home. StateDirectory has systemd create and chown it during startup,
# ordered after the impermanence bind-mount via RequiresMountsFor, so the
# ownership fix cannot race the mount.
systemd.services.buildbot-worker.serviceConfig = {
StateDirectory = "buildbot-worker";
StateDirectoryMode = "0750";
};
# Impermanence support for worker # Impermanence support for worker
custom.impermanence.extraDirs = lib.mkIf config.custom.impermanence.enable [ custom.impermanence.extraDirs = lib.mkIf config.custom.impermanence.enable [
"/var/lib/buildbot-worker" "/var/lib/buildbot-worker"
@@ -1,7 +0,0 @@
age-encryption.org/v1
-> ssh-ed25519 iWiFbA 7cvVxLABcXRf4dcBy3P2luLVs3WeaD6QKUgZavn0a2c
tRNiHyAVdrTzdzY+oSy8B99H3u/rpSnA5kguLU/kxqo
-> gv07K-grease
GbpbKAjbGCqM7d6NqrRd3BlRruAgtKbb1lo1D2f0m+PvJF4s6X7jGmY
--- ynuCuSKsXi/Cr7cVZp0nc0dwc4B7kGZNp7Yj1KalpB4
ÎxòÔã}òéÿ#»Õ7ÆcÔ0Zfác"8@¾5l+ÙN��ŠcI€E Øt¢…_ñÚõ6M5’ ‹¼‰}°Ÿ£%à‰:Dz
@@ -1,8 +0,0 @@
age-encryption.org/v1
-> ssh-ed25519 iWiFbA e716s5yHpZXm8lspQTQllsAEhpW8G3+5tQrEc73vPVk
i4vuhrl0UHqK6yJYltUkYL8UsbbY40Rn0/SmHhkz0Jw
-> JZ#K2Vj-grease ~X#Cd
vSY2xiiMCYMuNmIlQCtjF1SJmMlu2/hjyFptIVEoUHEvHGatCbMc
--- 7qNd0q5UyIvLwexxS10Wkv0n/FVMEKCaGZl2YQq6IkI
NWynÅNuÑäS&õ+† ø‹7EJBöôV²<?Ór
ÖæiË÷Žù’}á2rŠH¼$ö¹<žˆ␍j¿Òêœß6
@@ -1,8 +0,0 @@
age-encryption.org/v1
-> ssh-ed25519 iWiFbA kvU0d+gHojc/5NWdYOg4CelyanJ2RqPKomAHgpKDuEA
Drlvubd64/sIHCAZ5XQqjVwC64mu/T1Kyuczq7c/uqc
-> J<-grease Fn:S*ba X>%-J .V*5 8H=}Y
r/UoXBEmxwx6D5z+zbkZZvt2shx1oizxqV43oQBcWZImYShyB71T/OT4
--- NUTOzBY8NXxxSqO2zncHFSs4Wv+k9FgJEnhnhN/yXTc
ìø3"ø´ê6Ÿ¢Šºå’-¨;[Ì\�¢t±tÒ…�Aqç
�ßa~¢Nì:]‹}]T0F,+—ºGšó␍gT
@@ -1,7 +0,0 @@
age-encryption.org/v1
-> ssh-ed25519 iWiFbA jyoI6eDaw2UsihZWPwXVonRi4WmcJaKwRvKndBS57FA
JjV3W9XmWtodh3gWohnMiwuFiHZTauEpHjPOKX+tqQU
-> @-grease g"/uZ
glKxhgGKFLMCcTn3GLGC0t9jt/Uh0qw8FOhyUBR5C6VLYT30GirGwg
--- j87fiX39WKWSV8Rx5q+oKLfbKjckDdiq4VdM1xOdXTQ
¼{sZ8ãVÕ„@òø ÛÈŸÄÜÒ¡gŽ;ÿŠúQ»k6—Ãh^«ÃŒå·é„S C+ý# T¥NiÏ'ô9h_:"?Õ)4ŠŠnu¨;o¢«ŠBãó;£}oÿÀ
@@ -0,0 +1,7 @@
age-encryption.org/v1
-> ssh-ed25519 PS20DQ hlsRXNbk7/sYvqFooXHYNZDcdDTQ6qKZVv6FNUse+AI
IkRPQ39rafhzTJqHLHRRsamRYEGvY1dHJf6SJtS3S8k
-> QHzIs4Y-grease ?$tU-
fcgtDll/ozN77CfJMAT74Wi9nMF/aRIW8qIx
--- 4XR6IbP6jGLPveM4PQ8Zgj0jxZ2+DEOtia19nY1KDT0
u¹^­‘©…ù“óù"rk^a¾‘x„–°5´$ƒo„(}¬a~0 %�‰¿säh;feïP´©K�M®8!!!Áõý· ]9è†>"ë®3Y(Ñ´[-m|¦�
@@ -0,0 +1,8 @@
age-encryption.org/v1
-> ssh-ed25519 PS20DQ dYYtwkNzoMv8RGlXR6xZRhAPsys8PJYkX9I9L3E8oww
rKbwHCgG6pqLXFxPDQbfhvsuZTevwDxq4NrD8AgZo0E
-> $`-grease WGQ] \H2;KB~ !Y$L|x>
EqfKPvqII/Wge0W75O7DsfuGFk7NL/xy04D67+IHTZfc9Ikd9AGcN1K58Xq8A6+k
PqcHoG0c9Q
--- mOb/4YgHrqMr3ca/TboqOR/8LkxhQ7eFXlpaqJyjsgo
ްt‡˜áYc/út$°8r#GU }„Z *EŒ•il–æ—¾æÖþ‘9œ´3*†T†K/­ œ§˜ò·2€ œ