Files
nix-config/outputs/x86_64-linux/tests/remote-builders/expr.nix
T
ryan4yin | 二花 f3b741f5a0 feat(builders): enable aquamarine on remaining physical hosts (#500)
Enable the existing remote-builder module on shoryu, shushou and
youko, and authorize their SSH host keys on aquamarine.

Kana and Ruby are VM guests with no need to build; leave their local
store and build behavior unchanged.

Assisted-by: DeepSeek Harness (deepseek-flash)
2026-11-01 04:44:43 -06:00

23 lines
487 B
Nix

{
lib,
outputs,
...
}:
let
builderHosts = [
"ai-niri"
"shoryu"
"shushou"
"youko"
];
cfg = name: outputs.nixosConfigurations.${name}.config;
usesAquamarine =
name:
builtins.any (machine: machine.hostName == "aquamarine" && machine.sshUser == "root")
(cfg name).nix.buildMachines;
in
{
distributedBuilds = lib.genAttrs builderHosts (name: (cfg name).nix.distributedBuilds);
aquamarineConfigured = lib.genAttrs builderHosts usesAquamarine;
}