all repos — nixfiles @ ca4537a8e0f19baf3b83c0308bf444d71427906a

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

Mail: fix mail fetch timer to startup time
Alan Pearce alan@alanpearce.eu
Mon, 09 Dec 2019 14:36:38 +0100
commit

ca4537a8e0f19baf3b83c0308bf444d71427906a

parent

130b327aab3b0914f3ea82cab8a76a66eae86aba

1 files changed, 8 insertions(+), 1 deletions(-)

jump to
M user/settings/mail.nixuser/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;