nixos: use ssh-ng as default distributed builds protocol

This commit is contained in:
ooks-io 2025-01-13 20:57:13 +11:00
parent ce67d0de9b
commit 7f784a59fa

View file

@ -14,11 +14,11 @@
speedFactor, speedFactor,
systems ? ["x86_64-linux"], systems ? ["x86_64-linux"],
supportedFeatures ? ["big-parallel" "kvm" "nixos-test"], supportedFeatures ? ["big-parallel" "kvm" "nixos-test"],
maxJobs,
}: { }: {
inherit speedFactor systems supportedFeatures; inherit speedFactor systems supportedFeatures maxJobs;
hostName = host; hostName = host;
maxJobs = self.nixosConfigurations.${host}.config.nix.settings.max-jobs or "auto"; protocol = "ssh-ng";
protocol = "ssh";
sshKey = "/home/${admin.name}/.ssh/builder"; sshKey = "/home/${admin.name}/.ssh/builder";
}; };
@ -26,10 +26,12 @@
ooksdesk = mkBuilderMachine { ooksdesk = mkBuilderMachine {
host = "ooksdesk"; host = "ooksdesk";
speedFactor = 16; speedFactor = 16;
maxJobs = 4;
}; };
ooksmedia = mkBuilderMachine { ooksmedia = mkBuilderMachine {
host = "ooksmedia"; host = "ooksmedia";
speedFactor = 8; speedFactor = 8;
maxJobs = 1;
}; };
}; };
in { in {