{ config, lib, ... }: with lib; { options.server.builder.enableHydra = mkOption { type = types.bool; default = false; example = true; }; config = mkIf config.server.builder.enableHydra { services.hydra = { enable = true; hydraURL = "http://localhost:3000"; notificationSender = "hydra@localhost"; buildMachinesFiles = [ ]; useSubstitutes = true; }; }; }