mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-21 06:51:28 +01:00
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)
23 lines
487 B
Nix
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;
|
|
}
|