nixos-config/modules/services/dmz/hydra.nix
2024-05-25 13:48:07 +02:00

34 lines
635 B
Nix

{ lib, config, pkgs, ... }:
{
services.hydra = {
enable = true;
hydraURL = "http://localhost:3000";
notificationSender = "hydra@localhost";
useSubstitutes = true;
};
networking.firewall = {
enable = true;
#allowedUDPPorts = [ ];
allowedTCPPorts = [ 3000 ];
};
nix = {
settings.trusted-users = [
"hydra"
];
extraOptions = ''
secret-key-files = ${config.age.secrets."keys/nixsign".path};
'';
};
age.secrets."keys/nixsign" = {
file = ../../../secrets/keys/nixservepriv.age;
owner = "hydra";
};
}