This repository has been archived on 2024-08-30. You can view files and clone it, but cannot push or open issues or pull requests.
infrastructure/hosts/pink/services/hydra.nix

20 lines
630 B
Nix
Raw Normal View History

2024-05-29 17:15:20 +02:00
{ pkgs, config, ... }: {
services.hydra = {
enable = true;
hydraURL = "https://hydra.${config.networking.domain}"; # externally visible URL
notificationSender = "hydra@localhost"; #
# a standalone hydra will require you to unset the buildMachinesFiles list to avoid using a nonexistant /etc/nix/machines
buildMachinesFiles = [ ];
# you will probably also want, otherwise *everything* will be built from scratch
useSubstitutes = true;
port = 6732;
};
networking.firewall = {
allowedTCPPorts = [ config.services.hydra.port ];
allowedUDPPorts = [ config.services.hydra.port ];
};
}