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
Owner

The buildbot-nix master and worker both ran on boron. Repointed both
to iceman in locations.nix so autoServe enables them there and
disables them on boron, and updated the workerCores map (boron 16 ->
iceman 32) which the master throws on if a worker is missing.

Ported boron's aarch64 remote-build delegation (slider over ssh-ng)
to iceman so the worker can still build aarch64-linux jobs, and
removed it from boron. Authorised iceman on slider's
nix-remote-builder so slider accepts its host key. Caddy stays on
boron: the buildbot.hillion.co.uk vhost in global.nix already proxies
via ${locations.services.buildbot-nix-master}, so it follows the
repoint to iceman's nebula IP with no web change.

Rekeyed the buildbot-nix age secrets to iceman (agenix-rekey).

On iceman's impermanence the persisted state dirs (/var/lib/buildbot
and /var/lib/buildbot-worker) are created root-owned, so the services,
running as buildbot and buildbot-worker, failed pre-start with
permission denied while creating their subdirectories. Set
StateDirectory on both units so systemd creates and chowns the dir
during each service's own startup; systemd adds the path to
RequiresMountsFor, ordering it after the impermanence bind-mount so the
chown lands on the mounted directory rather than racing it. This drops
the master's tmpfiles chown, which ran before the mount at boot and
left the directory root-owned.

Test plan:

  • Built iceman and boron toplevels with nix build '.#nixosConfigurations."<host>".config.system.build.toplevel'
  • Confirmed buildbot master+worker enable on iceman and disable on boron via nix eval
  • Confirmed buildbot-master/worker units carry StateDirectory via nix eval
  • Confirmed boron Caddy vhost now proxies to iceman.cx.neb.jakehillion.me:8010
  • CI
The buildbot-nix master and worker both ran on boron. Repointed both to iceman in locations.nix so autoServe enables them there and disables them on boron, and updated the workerCores map (boron 16 -> iceman 32) which the master throws on if a worker is missing. Ported boron's aarch64 remote-build delegation (slider over ssh-ng) to iceman so the worker can still build aarch64-linux jobs, and removed it from boron. Authorised iceman on slider's nix-remote-builder so slider accepts its host key. Caddy stays on boron: the buildbot.hillion.co.uk vhost in global.nix already proxies via ${locations.services.buildbot-nix-master}, so it follows the repoint to iceman's nebula IP with no web change. Rekeyed the buildbot-nix age secrets to iceman (agenix-rekey). On iceman's impermanence the persisted state dirs (/var/lib/buildbot and /var/lib/buildbot-worker) are created root-owned, so the services, running as buildbot and buildbot-worker, failed pre-start with permission denied while creating their subdirectories. Set StateDirectory on both units so systemd creates and chowns the dir during each service's own startup; systemd adds the path to RequiresMountsFor, ordering it after the impermanence bind-mount so the chown lands on the mounted directory rather than racing it. This drops the master's tmpfiles chown, which ran before the mount at boot and left the directory root-owned. Test plan: - Built iceman and boron toplevels with `nix build '.#nixosConfigurations."<host>".config.system.build.toplevel'` - Confirmed buildbot master+worker enable on iceman and disable on boron via nix eval - Confirmed buildbot-master/worker units carry StateDirectory via nix eval - Confirmed boron Caddy vhost now proxies to iceman.cx.neb.jakehillion.me:8010 - CI
JakeHillion force-pushed jj/xqmxzokxkxtt from c5d9bd17d2 to 361cfe5655 2026-07-29 22:00:18 +01:00 Compare
Author
Owner

Has to wait for ba1b0a1bac to roll widely else hosts won't trust the signed ones.

Has to wait for ba1b0a1bac5aa4cd28c4c933f588d23eb1581749 to roll widely else hosts won't trust the signed ones.
JakeHillion force-pushed jj/xqmxzokxkxtt from 361cfe5655 to b1ff3b00ad 2026-07-30 20:44:33 +01:00 Compare
@@ -28,6 +28,7 @@
enable = true;
authorizedHosts = [
"boron.cx.neb.jakehillion.me"
Author
Owner

Should be replacing boron, not additive

Should be replacing boron, not additive
JakeHillion marked this conversation as resolved
JakeHillion force-pushed jj/xqmxzokxkxtt from b1ff3b00ad to 576ad5a601 2026-07-30 21:18:44 +01:00 Compare
JakeHillion force-pushed jj/xqmxzokxkxtt from 576ad5a601 to 8cc2578547 2026-07-30 21:19:33 +01:00 Compare
JakeHillion added 1 commit 2026-07-30 21:21:56 +01:00
buildbot-nix: migrate master and worker from boron to iceman
commit-validation / validate-single-commit (pull_request) Successful in 7s
buildbot/nix-eval Build done. (585 warnings)
buildbot/nix-build gitea:JakeHillion/nixos#checks.aarch64-linux.formatting Build done.
buildbot/nix-build gitea:JakeHillion/nixos#checks.aarch64-linux."nixos-theon.storage.neb.jakehillion.me" Build done.
buildbot/nix-build gitea:JakeHillion/nixos#checks.aarch64-linux."nixos-macvm.lt.neb.jakehillion.me" Build done.
buildbot/nix-build gitea:JakeHillion/nixos#checks.aarch64-linux."nixos-li.pop.neb.jakehillion.me" Build done.
buildbot/nix-build gitea:JakeHillion/nixos#checks.aarch64-linux."nixos-slider.pop.neb.jakehillion.me" Build done.
buildbot/nix-build gitea:JakeHillion/nixos#checks.x86_64-linux."nixos-rooster.cx.neb.jakehillion.me" Build done.
buildbot/nix-build gitea:JakeHillion/nixos#checks.x86_64-linux."nixos-boron.cx.neb.jakehillion.me" Build done.
buildbot/nix-build gitea:JakeHillion/nixos#checks.x86_64-linux."nixos-phoenix.st.neb.jakehillion.me" Build done.
buildbot/nix-build Build done.
buildbot/nix-effects Build done.
e8aa8f2730
The buildbot-nix master and worker both ran on boron. Repointed both
to iceman in locations.nix so autoServe enables them there and
disables them on boron, and updated the workerCores map (boron 16 ->
iceman 32) which the master throws on if a worker is missing.

Ported boron's aarch64 remote-build delegation (slider over ssh-ng)
to iceman so the worker can still build aarch64-linux jobs, and
removed it from boron. Authorised iceman on slider's
nix-remote-builder so slider accepts its host key. Caddy stays on
boron: the buildbot.hillion.co.uk vhost in global.nix already proxies
via ${locations.services.buildbot-nix-master}, so it follows the
repoint to iceman's nebula IP with no web change.

Rekeyed the buildbot-nix age secrets to iceman (agenix-rekey).

On iceman's impermanence the persisted state dirs (/var/lib/buildbot
and /var/lib/buildbot-worker) are created root-owned, so the services,
running as buildbot and buildbot-worker, failed pre-start with
permission denied while creating their subdirectories. Set
StateDirectory on both units so systemd creates and chowns the dir
during each service's own startup; systemd adds the path to
RequiresMountsFor, ordering it after the impermanence bind-mount so the
chown lands on the mounted directory rather than racing it. This drops
the master's tmpfiles chown, which ran before the mount at boot and
left the directory root-owned.

Test plan:
- Built iceman and boron toplevels with `nix build '.#nixosConfigurations."<host>".config.system.build.toplevel'`
- Confirmed buildbot master+worker enable on iceman and disable on boron via nix eval
- Confirmed buildbot-master/worker units carry StateDirectory via nix eval
- Confirmed boron Caddy vhost now proxies to iceman.cx.neb.jakehillion.me:8010
- CI
JakeHillion force-pushed jj/xqmxzokxkxtt from 8cc2578547 to e8aa8f2730 2026-07-30 21:21:56 +01:00 Compare
JakeHillion scheduled this pull request to auto merge when all checks succeed 2026-07-30 21:40:38 +01:00
JakeHillion merged commit e8aa8f2730 into main 2026-07-30 21:42:20 +01:00
JakeHillion deleted branch jj/xqmxzokxkxtt 2026-07-30 21:42:20 +01:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: JakeHillion/nixos#1251