From 8e16fdebfd4403e2d5338969b4847562434475e4 Mon Sep 17 00:00:00 2001 From: Kristian Krsnik Date: Sat, 27 Jul 2024 19:31:13 +0200 Subject: [PATCH] it does only make sense to run the service when internet is available --- nix/module.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/nix/module.nix b/nix/module.nix index 02eb95a..49b8225 100644 --- a/nix/module.nix +++ b/nix/module.nix @@ -46,9 +46,7 @@ in { systemd.services.dyn-gandi = mkIf (cfg.timer != null) { script = "${package}/bin/dyn-gandi --config ${configFile}"; - - after = ["network-online.target"]; - + requires = ["network-online.target"]; serviceConfig = { Type = "oneshot"; };