From 6556eda0be6b1c81553de21ddbf3e819c7ce05f9 Mon Sep 17 00:00:00 2001 From: coolneng Date: Sat, 24 Sep 2022 12:43:43 +0200 Subject: [PATCH] Run a mail sync operation periodically --- modules/periodic.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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";