it does only make sense to run the service when internet is available

This commit is contained in:
Kristian Krsnik 2024-07-27 19:31:13 +02:00
parent f04316b277
commit 8e16fdebfd
Signed by: Kristian
GPG Key ID: FD1330AC9F909E85

View File

@ -46,9 +46,7 @@ in {
systemd.services.dyn-gandi = mkIf (cfg.timer != null) { systemd.services.dyn-gandi = mkIf (cfg.timer != null) {
script = "${package}/bin/dyn-gandi --config ${configFile}"; script = "${package}/bin/dyn-gandi --config ${configFile}";
requires = ["network-online.target"];
after = ["network-online.target"];
serviceConfig = { serviceConfig = {
Type = "oneshot"; Type = "oneshot";
}; };