flake/modules/nixos/services/hydra.nix
2025-10-19 14:49:27 +03:00

30 lines
670 B
Nix

{
config,
lib,
...
}:
{
options = {
osbmModules.enableHydra = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Enable Hydra continuous integration server";
};
};
config = lib.mkMerge [
(lib.mkIf config.osbmModules.enableHydra {
services.hydra = {
enable = true;
port = 3000;
hydraURL = "http://${config.networking.hostName}.curl-boga.ts.net/hydra/";
notificationSender = "hydra@localhost";
buildMachinesFiles = [ ];
useSubstitutes = true;
};
networking.firewall.allowedTCPPorts = [
config.services.hydra.port
];
})
];
}