1
0
Fork 0
forked from emily/nixfiles
nixfiles-emily/config/services/hydra/nix-config.nix

38 lines
1.2 KiB
Nix
Raw Normal View History

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;
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;
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
};
}