mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-06-06 12:59:22 +02:00
update builder config
This commit is contained in:
parent
295fe0f23d
commit
ca48d67afc
1 changed files with 11 additions and 3 deletions
|
@ -70,7 +70,15 @@ in
|
||||||
[ (getMainArch name) ]
|
[ (getMainArch name) ]
|
||||||
++ self.nixosConfigurations.${name}.config.nix.settings.extra-platforms or [ ];
|
++ self.nixosConfigurations.${name}.config.nix.settings.extra-platforms or [ ];
|
||||||
in
|
in
|
||||||
|
lib.filter (builder: builder.hostName != config.networking.hostName)
|
||||||
[
|
[
|
||||||
|
{
|
||||||
|
hostName = "localhost";
|
||||||
|
protocol = null;
|
||||||
|
systems = getArchs config.networking.hostName;
|
||||||
|
supportedFeatures = config.nix.settings.system-features;
|
||||||
|
maxJobs = (lib.elemAt config.facter.report.hardware.cpu 0).cores;
|
||||||
|
}
|
||||||
{
|
{
|
||||||
systems = getArchs "hetzner";
|
systems = getArchs "hetzner";
|
||||||
supportedFeatures = self.nixosConfigurations.hetzner.config.nix.settings.system-features;
|
supportedFeatures = self.nixosConfigurations.hetzner.config.nix.settings.system-features;
|
||||||
|
@ -80,7 +88,7 @@ in
|
||||||
sshUser = "builder";
|
sshUser = "builder";
|
||||||
sshKey = "/root/.ssh/builder";
|
sshKey = "/root/.ssh/builder";
|
||||||
speedFactor = 5;
|
speedFactor = 5;
|
||||||
maxJobs = 12;
|
maxJobs = (lib.elemAt self.nixosConfigurations.hetzner.config.facter.report.hardware.cpu 0).cores;
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
systems = getArchs "zap";
|
systems = getArchs "zap";
|
||||||
|
@ -90,7 +98,7 @@ in
|
||||||
protocol = "ssh-ng";
|
protocol = "ssh-ng";
|
||||||
sshUser = "builder";
|
sshUser = "builder";
|
||||||
sshKey = "/root/.ssh/builder";
|
sshKey = "/root/.ssh/builder";
|
||||||
maxJobs = 4;
|
maxJobs = (lib.elemAt self.nixosConfigurations.zap.config.facter.report.hardware.cpu 0).cores;
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
systems = getArchs "kuraokami";
|
systems = getArchs "kuraokami";
|
||||||
|
@ -101,7 +109,7 @@ in
|
||||||
sshUser = "builder";
|
sshUser = "builder";
|
||||||
sshKey = "/root/.ssh/builder";
|
sshKey = "/root/.ssh/builder";
|
||||||
speedFactor = 10;
|
speedFactor = 10;
|
||||||
maxJobs = 24;
|
maxJobs = (lib.elemAt self.nixosConfigurations.kuraokami.config.facter.report.hardware.cpu 0).cores;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
distributedBuilds = true;
|
distributedBuilds = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue