From efadb6a26c694cc23380406ab471bc035b89ca44 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 3 Dec 2024 01:44:55 +0100 Subject: [PATCH] Make hydra-queue-runner want network-online.target Just ordering yourself after network-online.target will not guarantee that it will be loaded. You'll have to either want or require it. Hence the following trace on recent nixpkgs versions: evaluation warning: hydra-queue-runner.service is ordered after 'network-online.target' but doesn't depend on it --- nixos-modules/hydra.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos-modules/hydra.nix b/nixos-modules/hydra.nix index c471b0eff..4fc2d311b 100644 --- a/nixos-modules/hydra.nix +++ b/nixos-modules/hydra.nix @@ -338,6 +338,7 @@ in systemd.services.hydra-queue-runner = { wantedBy = [ "multi-user.target" ]; requires = [ "hydra-init.service" ]; + wants = [ "network-online.target" ]; after = [ "hydra-init.service" "network.target" "network-online.target" ]; path = [ cfg.package pkgs.nettools pkgs.openssh pkgs.bzip2 config.nix.package ]; restartTriggers = [ hydraConf ];