nixos-conf/servers/hydra.nix

41 lines
768 B
Nix

{ config, ... }:
{
imports = [
./utils/nginx-https-server.nix
./utils/acme-http-client.nix
];
services = {
hydra = {
enable = true;
hydraURL = "https://ci.sinerva.eu/";
listenHost = "::1";
notificationSender = "hydra@sinerva.eu";
port = 8080;
useSubstitutes = true;
extraConfig = "";
extraEnv = "";
};
nginx.virtualHosts.${config.services.hydra.hydraURL}.locations."/" = {
proxyPass = "http://localhost:8080";
};
};
nix.buildMachines = [
{
hostName = "localhost";
protocol = null;
system = "x86_64-linux";
supportedFeatures = [
"kvm"
"nixos-test"
"big-parallel"
"benchmark"
];
maxJobs = 6;
}
];
}