44 lines
766 B
Nix
44 lines
766 B
Nix
{ ... }:
|
|
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;
|
|
}
|
|
];
|
|
|
|
}
|