feat(remote-builders): build ai and shoukei on aquamarine (#467)

Aquamarine builds for ai and shoukei across the three platforms, with both
daemons logging in as root. They authenticate with their passphrase-free SSH
host keys, and ssh_known_hosts now carries each builder's address.

Assisted-by: DeepSeek Harness 0.2.0-rc.2 (deepseek-flash)
This commit is contained in:
ryan4yin | 二花 authored and GitHub committed 2026-10-17 00:49:22 +08:00
1 parent 4587c6bd14
commit d6450d48a2
12 files changed
+106 -72

No files matched your search

+4
View File
@@ -19,6 +19,10 @@ in
../idols-ai/preservation.nix
];
# 16G on a laptop: heavy derivations go to aquamarine's 96G instead of
# swapping here.
modules.remote-builders.enable = true;
# disable sunshine for security
services.sunshine.enable = lib.mkForce false;
+3
View File
@@ -47,6 +47,9 @@ in
# disk swapfile instead, created by disko at /swap (see ./disko-fs.nix). The two must move together.
modules.zram.enable = false;
# 32G of RAM against aquamarine's 96G, so builds go to the server first.
modules.remote-builders.enable = true;
# zswap: compressed writeback cache in front of the disk swapfile, so cold
# anonymous pages stay in RAM instead of hitting the SSD. Safe here: the disk
# swapfile remains the real backing store, no zram deadlock structure.
+11
View File
@@ -221,6 +221,17 @@ reinstall or a key rotation:
This config enables no `modules.secrets.*` group, so aquamarine decrypts nothing today; adding a
group is what requires the recipient step above.
## Remote builds
Aquamarine is the fleet's remote Nix builder: 24C/96G, plus `boot.binfmt.emulatedSystems` for
`aarch64-linux` and `riscv64-linux`, so one machine serves all three platforms. Clients opt in with
`modules.remote-builders.enable`, defined in `modules/nixos/base/remote-builders.nix`.
The builder's login user is `root`, which the daemon trusts by default, so this host needs no
`nix.settings.trusted-users` entry of its own. Each client's daemon authenticates with its own SSH
host key, which is passphrase-free and root-readable; `hosts/idols-aquamarine/default.nix`
authorizes those keys for root.
## Deploy
```bash
+3
View File
@@ -68,6 +68,9 @@ in
# so enabled user services can run without an active login session.
users.users."${myvars.username}".linger = true;
# The daemons of the hosts that build here (modules/nixos/base/remote-builders.nix).
users.users.root.openssh.authorizedKeys.keys = myvars.remoteBuilderClientKeys;
# systemd-journal - cap disk usage
# https://www.freedesktop.org/software/systemd/man/latest/journald.conf.html
services.journald.settings.Journal = {