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-05-11 16:02:39 +02:00
|
|
|
maxJobs = 40;
|
|
|
|
speedFactor = 40;
|
2024-05-13 12:17:37 +02:00
|
|
|
systems = [ "x86_64-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
|
|
|
}
|
|
|
|
{
|
|
|
|
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
|
|
|
}
|
|
|
|
];
|
|
|
|
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 = {
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|