22 lines
402 B
Nix
22 lines
402 B
Nix
{ ... }:
|
|
let
|
|
fqdn = "ci.freun.dev";
|
|
port = 3400;
|
|
in
|
|
{
|
|
services.hydra = {
|
|
enable = true;
|
|
hydraURL = "https://${fqdn}";
|
|
notificationSender = "Hydra <noreply@freun.dev>";
|
|
buildMachinesFiles = [];
|
|
useSubstitutes = true;
|
|
inherit port;
|
|
};
|
|
|
|
services.caddy.virtualHosts = {
|
|
"${fqdn}".extraConfig = ''
|
|
reverse_proxy localhost:${builtins.toString port}
|
|
'';
|
|
};
|
|
}
|