diff --git a/machines/albert/hydra.nix b/machines/albert/hydra.nix index e8c9472..b796071 100644 --- a/machines/albert/hydra.nix +++ b/machines/albert/hydra.nix @@ -33,9 +33,17 @@ binary_cache_secret_key_file = /etc/nix/albert/secret binary_cache_dir = /var/lib/hydra/cache Include ${config.sops.secrets.gitea_token.path} + + + listen_address = 0.0.0.0 + port = 9199 + + + queue_runner_metrics_address = 0.0.0.0:9198 ''; }; - + networking.firewall.allowedTCPPorts = [ 9199 9198 ]; + systemd.services.hydra-manual-setup = { description = "Create Admin User for Hydra"; serviceConfig.Type = "oneshot"; diff --git a/machines/overwatch/configuration.nix b/machines/overwatch/configuration.nix index 148ae43..d2d897a 100644 --- a/machines/overwatch/configuration.nix +++ b/machines/overwatch/configuration.nix @@ -141,6 +141,18 @@ in } ]; } + { + job_name = "hydra"; + static_configs = [{ + targets = [ "${hosts.malobeo.hosts.albert.network.address}:9199" ]; + }]; + } + { + job_name = "hydra-queue-runner"; + static_configs = [{ + targets = [ "${hosts.malobeo.hosts.albert.network.address}:9198" ]; + }]; + } { job_name = "overwatch"; static_configs = [{