diff options
author | Rick van Schijndel <rol3517@gmail.com> | 2023-02-14 19:45:33 +0100 |
---|---|---|
committer | Rick van Schijndel <rol3517@gmail.com> | 2023-03-07 21:58:23 +0100 |
commit | 60446dda1fca1f80876ba16e26b61ec486b377aa (patch) | |
tree | c563c646a891926cd3bd4e173cec1b87d6bae88d /nixos/modules/services/continuous-integration | |
parent | fdacd8e372eebced9343724abfcfd732c482f873 (diff) |
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/modules/services/continuous-integration')
-rw-r--r-- | nixos/modules/services/continuous-integration/hydra/default.nix | 2 |
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 564bcd37dec5e..83078706fcaec 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 // { |