diff --git a/modules/periodic.nix b/modules/periodic.nix index 0efb4e7..09a1913 100644 --- a/modules/periodic.nix +++ b/modules/periodic.nix @@ -49,7 +49,11 @@ script = '' ${pkgs.goimapnotify}/bin/goimapnotify -conf /home/coolneng/.config/goimapnotify/uni.conf ''; - serviceConfig.Type = "simple"; + serviceConfig = { + Type = "simple"; + Restart = "always"; + RestartSec = 20; + }; after = [ "network.target" ]; }; @@ -60,7 +64,11 @@ script = '' ${pkgs.goimapnotify}/bin/goimapnotify -conf /home/coolneng/.config/goimapnotify/gmail.conf ''; - serviceConfig.Type = "simple"; + serviceConfig = { + Type = "simple"; + Restart = "always"; + RestartSec = 20; + }; after = [ "network.target" ]; }; }