44 lines
1.0 KiB
Nix
44 lines
1.0 KiB
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
nix = {
|
|
binaryCaches =
|
|
[ "https://cache.nixos.org" "https://genodepkgs.cachix.org" ];
|
|
binaryCachePublicKeys = [
|
|
"genodepkgs.cachix.org-1:j6xcYrUP9Q9c+WbS+MbkJR26cqeytOVdC4SmhOYj2Sw="
|
|
];
|
|
extraOptions = ''
|
|
allowed-uris = http:// https://
|
|
'';
|
|
};
|
|
|
|
services.hydra = {
|
|
enable = true;
|
|
hydraURL = "https://hydra.hq.c3d2.de";
|
|
logo = ./c3d2.svg;
|
|
notificationSender = "hydra@spam.works";
|
|
package = pkgs.hydra-unstable;
|
|
useSubstitutes = false;
|
|
};
|
|
|
|
services.nginx =
|
|
let
|
|
hydraVhost = {
|
|
forceSSL = true;
|
|
enableACME = true;
|
|
locations."/".proxyPass =
|
|
"http://localhost:${toString config.services.hydra.port}";
|
|
};
|
|
in {
|
|
enable = true;
|
|
recommendedProxySettings = true;
|
|
recommendedGzipSettings = true;
|
|
virtualHosts = {
|
|
"hydra.hq.c3d2.de" = hydraVhost // {
|
|
default = true;
|
|
};
|
|
"hydra.serv.zentralwerk.org" = hydraVhost;
|
|
};
|
|
};
|
|
}
|