it does only make sense to run the service when internet is available
This commit is contained in:
parent
f04316b277
commit
8e16fdebfd
@ -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";
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user