Mail: fix mail fetch timer to startup time
Alan Pearce alan@alanpearce.eu
Mon, 09 Dec 2019 14:36:38 +0100
1 files changed, 8 insertions(+), 1 deletions(-)
jump to
M user/settings/mail.nix → user/settings/mail.nix
@@ -1,4 +1,4 @@-{ config, pkgs, ... }: +{ config, lib, pkgs, ... }: { home.packages = [ @@ -18,6 +18,13 @@ services.mbsync = { enable = true; frequency = "*:6/15"; postExec = "${config.programs.emacs.finalPackage}/bin/emacsclient -e (mu4e-update-index)"; + }; + systemd.user.timers.mbsync = { + Timer = { + OnCalendar = lib.mkForce false; + OnBootSec = "5min"; + OnUnitActiveSec = "15min"; + }; }; programs.msmtp = { enable = true;