diff --git a/modules/periodic.nix b/modules/periodic.nix index bb2ddf3..1fc5f2a 100644 --- a/modules/periodic.nix +++ b/modules/periodic.nix @@ -58,6 +58,7 @@ in { ${pkgs.goimapnotify}/bin/goimapnotify -conf /home/coolneng/.config/goimapnotify/ugent.conf ''; serviceConfig = { + ExecStartPre = "/home/coolneng/.local/share/scripts/mail-sync ugent"; Type = "simple"; Restart = "always"; RestartSec = 20; @@ -73,6 +74,7 @@ in { ${pkgs.goimapnotify}/bin/goimapnotify -conf /home/coolneng/.config/goimapnotify/gmail.conf ''; serviceConfig = { + ExecStartPre = "/home/coolneng/.local/share/scripts/mail-sync gmail"; Type = "simple"; Restart = "always"; RestartSec = 20;