all repos — nixfiles @ f41600d28dff11897dd92b6f85e15ceeb93fe6e3

System and user configuration, managed by nix and home-manager

satoshipad: run mbsync on timer

Alan Pearce
commit

f41600d28dff11897dd92b6f85e15ceeb93fe6e3

parent

aa870b21d05fc774db69d1530a55430fcc40adb4

1 file changed, 18 insertions(+), 0 deletions(-)

jump to
M satoshipad.nixsatoshipad.nix
@@ -50,4 +50,22 @@ system.autoUpgrade.dates = "13:24";
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"; + }; + }; }