Browse Source

Hail: use static address for hydra where available

storage-ng
Emery Hemingway 6 months ago
parent
commit
5d0b0cd997
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      lib/default.nix

+ 2
- 1
lib/default.nix View File

@@ -218,7 +218,8 @@ in {
218 218
     services.hail = lib.mkIf cfg.enableHail {
219 219
       enable = true;
220 220
       hydraJobUri =
221
-        "https://hydra.hq.c3d2.de/job/c3d2/hail/${config.networking.hostName}-activator ";
221
+        let hydra = if cfg.mapHqHosts then "hydra.hq" else "hydra.hq.c3d2.de";
222
+        in "https:///${hydra}/job/c3d2/hail/${config.networking.hostName}-activator ";
222 223
       # pad the end so the URL doesn't break when systemshit puts a ; on the end
223 224
       package = (import <nixpkgs-unstable> { }).haskellPackages.hail;
224 225
       # Only builds > 19.09

Loading…
Cancel
Save