nixos-conf/servers/hydra.nix

54 lines
991 B
Nix
Raw Normal View History

2025-06-11 20:45:47 +03:00
{ ... }:
let
domain = "ci.sinerva.eu";
in
{
imports = [
./utils/nginx-https-server.nix
./utils/acme-http-client.nix
];
services = {
hydra = {
enable = true;
hydraURL = "https://${domain}";
listenHost = "localhost";
notificationSender = "hydra@sinerva.eu";
port = 8080;
useSubstitutes = true;
2025-06-11 22:16:27 +03:00
extraConfig = ''
<dynamicruncommand>
enable = 1
</dynamicruncommand>
'';
2025-06-11 20:45:47 +03:00
};
nginx.virtualHosts.${domain}.locations."/" = {
proxyPass = "http://localhost:8080";
};
};
2025-06-11 22:16:27 +03:00
nix = {
settings.allowed-uris = [
"github:"
"git+https://github.com/"
"git+ssh://github.com/"
];
2025-06-11 20:45:47 +03:00
2025-06-11 22:16:27 +03:00
buildMachines = [
{
hostName = "localhost";
protocol = null;
system = "x86_64-linux";
supportedFeatures = [
"kvm"
"nixos-test"
"big-parallel"
"benchmark"
];
maxJobs = 6;
}
];
};
2025-06-11 20:45:47 +03:00
}