From 2b9a088845af1cac9e12ad5752be0e32b8c105c7 Mon Sep 17 00:00:00 2001 From: sterni Date: Fri, 15 Nov 2024 13:38:28 +0100 Subject: [PATCH] refactor(sterni/code.sterni.lv): downgrade network-online to wants `requires` is not recommended in this context. I think I tried it out of desperation trying to combat the issue that these units would be started before they were able to resolve names in switch-to-configuration. Unfortunately, network access during switch-to-configuration can't be detected using network-online.target, it seems. Change-Id: Ia98a0a3b505ffa56eb37fb58a5375a1215d6cb1b Reviewed-on: https://cl.tvl.fyi/c/depot/+/12794 Autosubmit: sterni Tested-by: BuildkiteCI Reviewed-by: sterni --- users/sterni/machines/ingeborg/http/code.sterni.lv.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/users/sterni/machines/ingeborg/http/code.sterni.lv.nix b/users/sterni/machines/ingeborg/http/code.sterni.lv.nix index 7a6f82395..843f525de 100644 --- a/users/sterni/machines/ingeborg/http/code.sterni.lv.nix +++ b/users/sterni/machines/ingeborg/http/code.sterni.lv.nix @@ -239,7 +239,7 @@ in name = unitName name; value = { description = "mirror git repository ${name}"; - requires = [ "network-online.target" ]; + wants = [ "network-online.target" ]; after = [ "network-online.target" ]; script =