Hail: use static address for hydra where available

This commit is contained in:
Emery Hemingway 2020-01-20 15:19:05 +01:00
parent 9f2af93778
commit 5d0b0cd997
1 changed files with 2 additions and 1 deletions

View File

@ -218,7 +218,8 @@ in {
services.hail = lib.mkIf cfg.enableHail { services.hail = lib.mkIf cfg.enableHail {
enable = true; enable = true;
hydraJobUri = 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 # pad the end so the URL doesn't break when systemshit puts a ; on the end
package = (import <nixpkgs-unstable> { }).haskellPackages.hail; package = (import <nixpkgs-unstable> { }).haskellPackages.hail;
# Only builds > 19.09 # Only builds > 19.09