nix-config/hosts/server7/hydra.nix

38 lines
813 B
Nix
Raw Normal View History

{ config, pkgs, ... }:
{
2019-11-28 11:38:03 +01:00
services.hydra = {
enable = true;
hydraURL = "https://server7.hq.c3d2.de";
logo = ./hydra.svg;
2019-11-28 11:38:03 +01:00
notificationSender = "hydra@spam.works";
package = pkgs.hydra-unstable;
2019-11-28 11:38:03 +01:00
listenHost = "127.0.0.1";
};
nix.trustedUsers = [ "hydra" ];
nix.buildMachines = [{
hostName = "localhost";
system = "x86_64-linux";
supportedFeatures = [ "kvm" "nixos-test" "big-parallel" "benchmark" ];
maxJobs = 8;
}];
2019-11-28 11:38:03 +01:00
services.nginx = {
enable = true;
virtualHosts = {
"server7.hq.c3d2.de" = {
2019-11-28 11:38:03 +01:00
default = true;
addSSL = true;
enableACME = true;
2019-11-28 11:38:03 +01:00
locations."/".proxyPass =
"http://127.0.0.1:${toString config.services.hydra.port}";
};
};
};
2019-11-28 11:38:03 +01:00
networking.firewall.allowedTCPPorts = [ 80 443 ];
}