diff options
author | Alan Pearce | 2019-08-05 14:45:15 +0200 |
---|---|---|
committer | Alan Pearce | 2019-08-05 14:46:02 +0200 |
commit | f41600d28dff11897dd92b6f85e15ceeb93fe6e3 (patch) | |
tree | ea9f17d880953733cd744ff4cbdaeb055850013c | |
parent | aa870b21d05fc774db69d1530a55430fcc40adb4 (diff) | |
download | nixfiles-f41600d28dff11897dd92b6f85e15ceeb93fe6e3.tar.lz nixfiles-f41600d28dff11897dd92b6f85e15ceeb93fe6e3.tar.zst nixfiles-f41600d28dff11897dd92b6f85e15ceeb93fe6e3.zip |
satoshipad: run mbsync on timer
-rw-r--r-- | satoshipad.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/satoshipad.nix b/satoshipad.nix index 25aaf284..5ecb4481 100644 --- a/satoshipad.nix +++ b/satoshipad.nix @@ -50,4 +50,22 @@ virtualisation.docker.autoPrune.dates = "Mon, 13:00"; system.stateVersion = "18.03"; + + systemd.user.services.mbsync = { + description = "Mailbox synchronisation"; + serviceConfig = { + Type = "oneshot"; + ExecStart = "${pkgs.isync}/bin/mbsync -Va"; + ExecStartPost = "${pkgs.unstable.emacs}/bin/emacsclient -e (mu4e-update-index)"; + }; + }; + + systemd.user.timers.mbsync = { + description = "Mailbox synchronisation timer"; + wantedBy = [ "default.target" ]; + timerConfig = { + OnBootSec = "2m"; + OnUnitActiveSec = "10m"; + }; + }; } |