diff --git a/modules/periodic.nix b/modules/periodic.nix index dfa5046..44913da 100644 --- a/modules/periodic.nix +++ b/modules/periodic.nix @@ -111,6 +111,19 @@ in { after = [ "network-online.target" ]; }; + # Do a full mail sync periodically + systemd.user.services.periodic-mail-sync = { + description = "Run a mail sync operation periodically"; + wantedBy = [ "default.target" ]; + path = + [ pass-wayland isync-oauth2 mu procps emacs-vterm python39 gnupg nix ]; + script = '' + /home/coolneng/.local/share/scripts/mail-sync -a + ''; + after = [ "network-online.target" ]; + startAt = "*-*-* *:00,15,30,45:00"; + }; + # HACK Change home partition permissions for mopidy systemd.services.chmod-home = { description = "Change home partition permissions for Mopidy";