38 lines
856 B
Nix
38 lines
856 B
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 = {
|
|
enable = true;
|
|
recommendedProxySettings = true;
|
|
recommendedGzipSettings = true;
|
|
virtualHosts."hydra.hq.c3d2.de" = {
|
|
forceSSL = true;
|
|
enableACME = true;
|
|
locations."/".proxyPass =
|
|
"http://localhost:${toString config.services.hydra.port}";
|
|
};
|
|
};
|
|
}
|