From 2dbeaa80c3b79fffaa199a77a15653357f322de0 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 26 Feb 2024 14:18:55 +0300 Subject: fix: explicit dependencies on network-online.target A recent change in nixpkgs introduced evaluation warnings if a systemd service is configured to start after network-online.target, but does not directly depend on it. This is done because the existing dependency from multi-user.target to network-online.target is being removed, leaving these services without an actual dependency on the service. This affected autosubmit (I added a weak dependency here, for now the service is actually on the same host as Gerrit), and sterni's mirror setup (I added a strong dependency here). Change-Id: I88a4aa69f6788c489f59533d34be3c9cea681326 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11026 Autosubmit: tazjin Reviewed-by: sterni Tested-by: BuildkiteCI --- users/sterni/machines/ingeborg/http/code.sterni.lv.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'users/sterni/machines') diff --git a/users/sterni/machines/ingeborg/http/code.sterni.lv.nix b/users/sterni/machines/ingeborg/http/code.sterni.lv.nix index 94d7915d7fe8..fd4975ed1d59 100644 --- a/users/sterni/machines/ingeborg/http/code.sterni.lv.nix +++ b/users/sterni/machines/ingeborg/http/code.sterni.lv.nix @@ -227,7 +227,9 @@ in name = unitName name; value = { description = "mirror git repository ${name}"; + requires = [ "network-online.target" ]; after = [ "network-online.target" ]; + script = let path = repoPath name repo; -- cgit 1.4.1