2023-05-01 21:05:49 +02:00
|
|
|
{ config, ... }:
|
|
|
|
let
|
2023-09-19 13:47:08 +02:00
|
|
|
domain = "hydra.${config.networking.domain}";
|
2023-05-01 21:05:49 +02:00
|
|
|
in
|
|
|
|
{
|
|
|
|
services.hydra = {
|
|
|
|
enable = true;
|
|
|
|
port = 4000;
|
|
|
|
hydraURL = domain;
|
|
|
|
notificationSender = "hydra@localhost";
|
2023-05-03 16:22:42 +02:00
|
|
|
buildMachinesFiles = [ ];
|
2023-05-02 00:04:26 +02:00
|
|
|
useSubstitutes = true;
|
|
|
|
|
2023-05-01 21:05:49 +02:00
|
|
|
};
|
|
|
|
services.nginx.virtualHosts."${domain}" = {
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
locations."/" = {
|
|
|
|
proxyPass = "http://127.0.0.1:${toString config.services.hydra.port}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|