mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-01 15:56:33 +01:00
disable if hostname is same
This commit is contained in:
parent
2e91810ff7
commit
367058bc39
1 changed files with 9 additions and 11 deletions
|
@ -27,31 +27,29 @@ in {
|
||||||
warn-dirty = true;
|
warn-dirty = true;
|
||||||
use-xdg-base-directories = true;
|
use-xdg-base-directories = true;
|
||||||
keep-going = true;
|
keep-going = true;
|
||||||
|
builders-use-substitutes = true;
|
||||||
};
|
};
|
||||||
buildMachines = [
|
buildMachines = [
|
||||||
{
|
(rec {
|
||||||
systems = [ self.nixosConfigurations.kuraokami.config.nixpkgs.hostPlatform.system ];
|
systems = [ self.nixosConfigurations.kuraokami.config.nixpkgs.hostPlatform.system ];
|
||||||
supportedFeatures = self.nixosConfigurations.kuraokami.config.nix.settings.system-features;
|
supportedFeatures = self.nixosConfigurations.kuraokami.config.nix.settings.system-features;
|
||||||
maxJobs = 24;
|
maxJobs = if hostName != config.networking.hostName then 24 else 0;
|
||||||
speedFactor = 20;
|
speedFactor = 20;
|
||||||
|
sshKey = "/home/jopejoe1/.ssh/github";
|
||||||
|
sshUser = "jopejoe1";
|
||||||
hostName = "kuraokami";
|
hostName = "kuraokami";
|
||||||
protocol = "ssh-ng";
|
protocol = "ssh-ng";
|
||||||
}
|
})
|
||||||
{
|
{
|
||||||
systems = [ self.nixosConfigurations.zap.config.nixpkgs.hostPlatform.system ];
|
systems = [ self.nixosConfigurations.zap.config.nixpkgs.hostPlatform.system ];
|
||||||
supportedFeatures = self.nixosConfigurations.zap.config.nix.settings.system-features;
|
supportedFeatures = self.nixosConfigurations.zap.config.nix.settings.system-features;
|
||||||
maxJobs = 4;
|
maxJobs = if hostName != config.networking.hostName then 4 else 0;;
|
||||||
speedFactor = 10;
|
speedFactor = 10;
|
||||||
|
sshUser = "jopejoe1";
|
||||||
|
sshKey = "/home/jopejoe1/.ssh/github";
|
||||||
hostName = "zap";
|
hostName = "zap";
|
||||||
protocol = "ssh-ng";
|
protocol = "ssh-ng";
|
||||||
}
|
}
|
||||||
{
|
|
||||||
systems = [ config.nixpkgs.hostPlatform.system ];
|
|
||||||
supportedFeatures = config.nix.settings.system-features;
|
|
||||||
speedFactor = 15;
|
|
||||||
hostName = "localhost";
|
|
||||||
protocol = null;
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
distributedBuilds = true;
|
distributedBuilds = true;
|
||||||
package = pkgs.nixVersions.unstable;
|
package = pkgs.nixVersions.unstable;
|
||||||
|
|
Loading…
Reference in a new issue