38 lines
730 B
Nix
38 lines
730 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 = "";
|
|
};
|
|
|
|
nix.buildMachines = [
|
|
{
|
|
hostName = "localhost";
|
|
protocol = null;
|
|
system = "x86_64-linux";
|
|
supportedFeatures = [
|
|
"kvm"
|
|
"nixos-test"
|
|
"big-parallel"
|
|
"benchmark"
|
|
];
|
|
maxJobs = 6;
|
|
}
|
|
];
|
|
|
|
nginx.virtualHosts.${config.services.hydra.hydraURL}.locations."/" = {
|
|
proxyPass = "http://localhost:8080";
|
|
};
|
|
}
|