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