2024-05-14 14:17:53 +02:00
|
|
|
{ config, ... }: {
|
2024-05-11 16:02:39 +02:00
|
|
|
nix.buildMachines = [
|
|
|
|
{
|
|
|
|
hostName = "localhost";
|
2024-05-11 17:46:14 +02:00
|
|
|
sshUser = "hydra-queue-runner";
|
2024-07-23 18:31:15 +02:00
|
|
|
maxJobs = 20;
|
|
|
|
speedFactor = 17;
|
2024-05-13 12:17:37 +02:00
|
|
|
systems = [ "x86_64-linux" ];
|
2024-07-22 14:54:47 +02:00
|
|
|
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
|
2024-05-14 14:17:53 +02:00
|
|
|
sshKey = config.sops.secrets."services/hydra/id_ed25519_hydra".path;
|
2024-05-11 16:02:39 +02:00
|
|
|
}
|
|
|
|
{
|
|
|
|
hostName = "integra.kyouma.net";
|
|
|
|
sshUser = "build";
|
|
|
|
maxJobs = 4;
|
|
|
|
speedFactor = 8;
|
2024-05-13 12:17:37 +02:00
|
|
|
systems = [ "aarch64-linux" ];
|
2024-05-11 16:02:39 +02:00
|
|
|
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
|
2024-05-14 14:17:53 +02:00
|
|
|
sshKey = config.sops.secrets."services/hydra/id_ed25519_hydra".path;
|
2024-05-11 16:02:39 +02:00
|
|
|
}
|
2024-07-23 14:13:39 +02:00
|
|
|
{
|
|
|
|
hostName = "build-worker-03.nyantec.com";
|
|
|
|
sshUser = "nix-ssh";
|
|
|
|
maxJobs = 8;
|
2024-07-23 18:31:15 +02:00
|
|
|
speedFactor = 18;
|
2024-07-26 17:50:32 +02:00
|
|
|
systems = [ "x86_64-linux" "riscv64-linux" ];
|
|
|
|
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" "gccarch-x86-64" "gccarch-x86-64-v2" "gccarch-x86-64-v3" ];
|
2024-07-23 14:13:39 +02:00
|
|
|
sshKey = config.sops.secrets."services/hydra/id_ed25519_hydra".path;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
hostName = "build-worker-04.nyantec.com";
|
|
|
|
sshUser = "nix-ssh";
|
|
|
|
maxJobs = 8;
|
2024-07-23 18:31:15 +02:00
|
|
|
speedFactor = 18;
|
2024-07-26 17:50:32 +02:00
|
|
|
systems = [ "x86_64-linux" "riscv64-linux" ];
|
|
|
|
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" "gccarch-x86-64" "gccarch-x86-64-v2" "gccarch-x86-64-v3" ];
|
2024-07-23 14:13:39 +02:00
|
|
|
sshKey = config.sops.secrets."services/hydra/id_ed25519_hydra".path;
|
|
|
|
}
|
2024-05-11 16:02:39 +02:00
|
|
|
];
|
|
|
|
nix.settings = {
|
|
|
|
allowed-uris = [
|
|
|
|
"github:"
|
|
|
|
"git+https://"
|
|
|
|
"git+ssh://"
|
2024-05-12 19:54:39 +02:00
|
|
|
"https://"
|
2024-05-11 16:02:39 +02:00
|
|
|
];
|
|
|
|
};
|
2024-05-14 14:17:53 +02:00
|
|
|
users.users.hydra-queue-runner.openssh.authorizedKeys.keys = [
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIE/vCXM3IaxJP9v2Y+xcQrQD2IcffgdzqtWhpMjj9Xl5 hydra@seras"
|
|
|
|
];
|
2024-05-11 16:02:39 +02:00
|
|
|
programs.ssh = {
|
2024-07-23 14:13:39 +02:00
|
|
|
knownHosts."build-worker-03.nyantec.com".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEGqTY74c5g15DSNPNM2Wdr5jAwS7BFgX1XRnhtGOnJc";
|
|
|
|
knownHosts."build-worker-04.nyantec.com".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICOq+5I+nlAN2lJoOtoXrYEDuZ/TMPMa43pIlablYigK";
|
2024-05-11 16:02:39 +02:00
|
|
|
knownHosts."integra.kyouma.net".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIBwEQiSfaDrUAwgul4mktusBPcIVxI4pLNDh9DPopVU";
|
2024-05-14 14:17:53 +02:00
|
|
|
knownHosts."localhost".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPNVavo3YHVsrYwXRVISu7kDoknn+5inFGySn4azlB8P";
|
2024-05-11 16:02:39 +02:00
|
|
|
};
|
|
|
|
}
|