nixos-config/hosts/nuc/modules/hydra/default.nix

20 lines
387 B
Nix
Raw Normal View History

2023-05-01 21:05:49 +02:00
{ config, ... }:
let
domain = "hydra.rfive.de";
in
{
services.hydra = {
enable = true;
port = 4000;
hydraURL = domain;
notificationSender = "hydra@localhost";
};
services.nginx.virtualHosts."${domain}" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:${toString config.services.hydra.port}";
};
};
}