mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2024-11-16 05:43:10 +01:00
23 lines
464 B
Nix
23 lines
464 B
Nix
{ config, ... }:
|
|
let
|
|
domain = "hydra.${config.networking.domain}";
|
|
in
|
|
{
|
|
services.hydra = {
|
|
enable = true;
|
|
port = 4000;
|
|
hydraURL = domain;
|
|
notificationSender = "hydra@localhost";
|
|
buildMachinesFiles = [ ];
|
|
useSubstitutes = true;
|
|
|
|
};
|
|
services.nginx.virtualHosts."${domain}" = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
locations."/" = {
|
|
proxyPass = "http://127.0.0.1:${toString config.services.hydra.port}";
|
|
};
|
|
};
|
|
}
|