Begin testing remote builds

This commit is contained in:
Bun 2025-06-09 15:34:04 -04:00
parent 1a4e5103b2
commit 7aa39a1110
7 changed files with 109 additions and 68 deletions

View file

@ -2,6 +2,7 @@
{
imports = [
./channels
./distributed
./gc
./unfree
];
@ -17,6 +18,6 @@
};
};
# Use nixos-rebuild-ng
# Use a newer implementation of nixos-rebuild
system.rebuild.enableNg = true;
}

View file

@ -0,0 +1,33 @@
{ nodes, ... }:
{
nix = {
settings = {
max-jobs = 0;
trusted-users = [ "root" ];
};
distributedBuilds = true;
buildMachines = with nodes; [
{
hostName = midas.config.deployment.targetHost;
system = midas.config.nixpkgs.localSystem.system;
}
{
hostName = kitty.config.deployment.targetHost;
system = kitty.config.nixpkgs.localSystem.system;
}
{
hostName = prophet.config.deployment.targetHost;
system = prophet.config.nixpkgs.localSystem.system;
}
{
hostName = detritus.config.deployment.targetHost;
system = detritus.config.nixpkgs.localSystem.system;
}
{
hostName = elder.config.deployment.targetHost;
system = elder.config.nixpkgs.localSystem.system;
}
];
};
}