Begin testing remote builds
This commit is contained in:
parent
1a4e5103b2
commit
7aa39a1110
7 changed files with 109 additions and 68 deletions
|
@ -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;
|
||||
}
|
||||
|
|
33
modules/system/settings/nix/distributed/default.nix
Normal file
33
modules/system/settings/nix/distributed/default.nix
Normal 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;
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue