modules/nixos: refactor remote workers
This commit is contained in:
parent
4293c51090
commit
d446870b79
7 changed files with 40 additions and 56 deletions
modules/nixos
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
../../shared/remote-builder.nix
|
||||
../shared/remote-builder.nix
|
||||
];
|
||||
|
||||
users.users.nix = {
|
|
@ -1,16 +0,0 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
nix.distributedBuilds = true;
|
||||
nix.buildMachines = [
|
||||
{
|
||||
hostName = "build04.nix-community.org";
|
||||
maxJobs = 4;
|
||||
protocol = "ssh"; # this machine is used by hydra which doesn't support ssh-ng
|
||||
sshKey = config.sops.secrets.id_buildfarm.path;
|
||||
sshUser = "nix";
|
||||
system = "aarch64-linux";
|
||||
supportedFeatures = [ "big-parallel" ];
|
||||
}
|
||||
];
|
||||
sops.secrets.id_buildfarm = { };
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
nix.distributedBuilds = true;
|
||||
nix.buildMachines = [
|
||||
{
|
||||
hostName = "darwin02.nix-community.org";
|
||||
maxJobs = 8;
|
||||
protocol = "ssh"; # this machine is used by hydra which doesn't support ssh-ng
|
||||
sshKey = config.sops.secrets.id_buildfarm.path;
|
||||
sshUser = "nix";
|
||||
systems = [ "aarch64-darwin" "x86_64-darwin" ];
|
||||
supportedFeatures = [ "big-parallel" ];
|
||||
}
|
||||
];
|
||||
sops.secrets.id_buildfarm = { };
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
nix.distributedBuilds = true;
|
||||
nix.buildMachines = [
|
||||
{
|
||||
hostName = "darwin03.nix-community.org";
|
||||
maxJobs = 8;
|
||||
protocol = "ssh"; # this machine is used by hydra which doesn't support ssh-ng
|
||||
sshKey = config.sops.secrets.id_buildfarm.path;
|
||||
sshUser = "nix";
|
||||
systems = [ "aarch64-darwin" "x86_64-darwin" ];
|
||||
supportedFeatures = [ "big-parallel" ];
|
||||
}
|
||||
];
|
||||
sops.secrets.id_buildfarm = { };
|
||||
}
|
36
modules/nixos/remote-workers.nix
Normal file
36
modules/nixos/remote-workers.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
sops.secrets.id_buildfarm = { };
|
||||
|
||||
nix.distributedBuilds = true;
|
||||
nix.buildMachines = [
|
||||
# these machines are used by hydra which doesn't support ssh-ng
|
||||
{
|
||||
hostName = "build04.nix-community.org";
|
||||
maxJobs = 4;
|
||||
protocol = "ssh";
|
||||
sshKey = config.sops.secrets.id_buildfarm.path;
|
||||
sshUser = "nix";
|
||||
system = "aarch64-linux";
|
||||
supportedFeatures = [ "big-parallel" ];
|
||||
}
|
||||
{
|
||||
hostName = "darwin02.nix-community.org";
|
||||
maxJobs = 8;
|
||||
protocol = "ssh";
|
||||
sshKey = config.sops.secrets.id_buildfarm.path;
|
||||
sshUser = "nix";
|
||||
systems = [ "aarch64-darwin" "x86_64-darwin" ];
|
||||
supportedFeatures = [ "big-parallel" ];
|
||||
}
|
||||
{
|
||||
hostName = "darwin03.nix-community.org";
|
||||
maxJobs = 8;
|
||||
protocol = "ssh";
|
||||
sshKey = config.sops.secrets.id_buildfarm.path;
|
||||
sshUser = "nix";
|
||||
systems = [ "aarch64-darwin" "x86_64-darwin" ];
|
||||
supportedFeatures = [ "big-parallel" ];
|
||||
}
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue