summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorRick van Schijndel <rol3517@gmail.com>2023-02-14 19:45:33 +0100
committerRick van Schijndel <rol3517@gmail.com>2023-03-07 21:58:23 +0100
commit60446dda1fca1f80876ba16e26b61ec486b377aa (patch)
treec563c646a891926cd3bd4e173cec1b87d6bae88d /nixos
parentfdacd8e372eebced9343724abfcfd732c482f873 (diff)
downloadnixpkgs-60446dda1fca1f80876ba16e26b61ec486b377aa.tar
nixpkgs-60446dda1fca1f80876ba16e26b61ec486b377aa.tar.gz
nixpkgs-60446dda1fca1f80876ba16e26b61ec486b377aa.tar.bz2
nixpkgs-60446dda1fca1f80876ba16e26b61ec486b377aa.tar.lz
nixpkgs-60446dda1fca1f80876ba16e26b61ec486b377aa.tar.xz
nixpkgs-60446dda1fca1f80876ba16e26b61ec486b377aa.tar.zst
nixpkgs-60446dda1fca1f80876ba16e26b61ec486b377aa.zip
nixos/hydra: wait for network-online before evaluator start
This prevents issues I'm seeing with the hydra I'm running on my laptop.
Every time I reboot it I see eval errors like this:

```
error fetching latest change from git repo at `https://github.com/nixos/nixpkgs.git':
fatal: unable to access 'https://github.com/nixos/nixpkgs.git/': Could not resolve host: github.com
```

This is because the evaluator already starts before the network is
actually online. It should wait until the network is fully online before
starting evaluation to prevent evaluation errors like above.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/continuous-integration/hydra/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/continuous-integration/hydra/default.nix b/nixos/modules/services/continuous-integration/hydra/default.nix
index 564bcd37dec..83078706fca 100644
--- a/nixos/modules/services/continuous-integration/hydra/default.nix
+++ b/nixos/modules/services/continuous-integration/hydra/default.nix
@@ -398,7 +398,7 @@ in
     systemd.services.hydra-evaluator =
       { wantedBy = [ "multi-user.target" ];
         requires = [ "hydra-init.service" ];
-        after = [ "hydra-init.service" "network.target" ];
+        after = [ "hydra-init.service" "network.target" "network-online.target" ];
         path = with pkgs; [ hydra-package nettools jq ];
         restartTriggers = [ hydraConf ];
         environment = env // {