nixos-config/modules/services/dmz/hydra.nix

34 lines
634 B
Nix
Raw Normal View History

2024-05-05 19:39:35 +02:00
{ lib, config, pkgs, ... }:
{
services.hydra = {
enable = true;
hydraURL = "http://localhost:3000";
notificationSender = "hydra@localhost";
useSubstitutes = true;
};
2024-05-25 10:50:37 +02:00
networking.firewall = {
enable = true;
#allowedUDPPorts = [ ];
allowedTCPPorts = [ 3000 ];
};
nix = {
settings.trusted-users = [
"hydra"
];
extraOptions = ''
2024-05-26 09:07:19 +02:00
secret-key-files = ${config.age.secrets."keys/nixsign".path}
2024-05-25 10:50:37 +02:00
'';
};
2024-05-25 12:50:05 +02:00
age.secrets."keys/nixsign" = {
2024-05-25 10:50:37 +02:00
file = ../../../secrets/keys/nixservepriv.age;
owner = "hydra";
};
2024-05-05 19:39:35 +02:00
}