From 5d0b0cd99712f61a9efe01c27ea29f7e02da2db8 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Mon, 20 Jan 2020 15:19:05 +0100 Subject: [PATCH] Hail: use static address for hydra where available --- lib/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/default.nix b/lib/default.nix index 906c8a33..e6105740 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -218,7 +218,8 @@ in { services.hail = lib.mkIf cfg.enableHail { enable = true; hydraJobUri = - "https://hydra.hq.c3d2.de/job/c3d2/hail/${config.networking.hostName}-activator "; + let hydra = if cfg.mapHqHosts then "hydra.hq" else "hydra.hq.c3d2.de"; + in "https:///${hydra}/job/c3d2/hail/${config.networking.hostName}-activator "; # pad the end so the URL doesn't break when systemshit puts a ; on the end package = (import { }).haskellPackages.hail; # Only builds > 19.09