Ok, distributed. Maybe.

This commit is contained in:
Bun 2025-06-09 18:24:51 -04:00
parent 4e145a70d9
commit 9191593dc7
9 changed files with 76 additions and 47 deletions

View file

@ -2,6 +2,7 @@
{
imports = [
./channels
./distributed
./gc
./unfree
];
@ -14,10 +15,7 @@
"nix-command"
"flakes"
];
max-jobs = 0;
trusted-users = [ "root" ];
};
distributedBuilds = true;
};
# Use a newer implementation of nixos-rebuild

View file

@ -0,0 +1,39 @@
{ nodes, ... }:
{
nix = {
buildMachines = with nodes; [
{
hostName = midas.config.deployment.targetHost;
system = midas.config.nixpkgs.localSystem.system;
publicHostKey = "AAAAC3NzaC1lZDI1NTE5AAAAIFcFMvrx9/iUZ1mEubf+QF1i3LNTxFhaU/1zFSjdo0kK";
protocol = "ssh-ng";
}
{
hostName = kitty.config.deployment.targetHost;
system = kitty.config.nixpkgs.localSystem.system;
publicHostKey = "AAAAC3NzaC1lZDI1NTE5AAAAIIrGmsya5DXKuXO6jNjUlrYHqk49KLzxM/60GXtLRLrL";
protocol = "ssh-ng";
}
{
hostName = detritus.config.deployment.targetHost;
system = detritus.config.nixpkgs.localSystem.system;
publicHostKey = "AAAAC3NzaC1lZDI1NTE5AAAAIN+GvLro4DVmlvmXcasU1gctIX9qct7mZtElpB735AoL";
protocol = "ssh-ng";
}
{
hostName = elder.config.deployment.targetHost;
system = elder.config.nixpkgs.localSystem.system;
publicHostKey = "AAAAC3NzaC1lZDI1NTE5AAAAIFjmJ6bkuO57gp6GZDEfR1O7krdf5wiqrOBC5pzTDl91";
protocol = "ssh-ng";
}
{
hostName = prophet.config.deployment.targetHost;
system = prophet.config.nixpkgs.localSystem.system;
publicHostKey = "AAAAC3NzaC1lZDI1NTE5AAAAICrp3Y/X2BRUENx+0GMTmB1VDA6SiwkGgdJMHSdMMepM";
protocol = "ssh-ng";
}
];
distributedBuilds = true;
settings.trusted-users = [ "root" ];
};
}