nixos-conf/servers/hydra.nix

45 lines
767 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 = "::1";
notificationSender = "hydra@sinerva.eu";
port = 8080;
useSubstitutes = true;
extraConfig = "";
extraEnv = { };
};
nginx.virtualHosts.${domain}.locations."/" = {
proxyPass = "http://localhost:8080";
};
};
nix.buildMachines = [
{
hostName = "localhost";
protocol = null;
system = "x86_64-linux";
supportedFeatures = [
"kvm"
"nixos-test"
"big-parallel"
"benchmark"
];
maxJobs = 6;
}
];
}