diff options
author | Alan Pearce | 2019-12-09 14:36:38 +0100 |
---|---|---|
committer | Alan Pearce | 2019-12-09 14:36:38 +0100 |
commit | ca4537a8e0f19baf3b83c0308bf444d71427906a (patch) | |
tree | a7c5f8981c8e823cb9839c42a97c2851f5c31c18 | |
parent | 130b327aab3b0914f3ea82cab8a76a66eae86aba (diff) | |
download | nixfiles-ca4537a8e0f19baf3b83c0308bf444d71427906a.tar.lz nixfiles-ca4537a8e0f19baf3b83c0308bf444d71427906a.tar.zst nixfiles-ca4537a8e0f19baf3b83c0308bf444d71427906a.zip |
Mail: fix mail fetch timer to startup time
-rw-r--r-- | user/settings/mail.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/user/settings/mail.nix b/user/settings/mail.nix index 3ce9e548..59fdc7d2 100644 --- a/user/settings/mail.nix +++ b/user/settings/mail.nix @@ -1,4 +1,4 @@ -{ config, pkgs, ... }: +{ config, lib, pkgs, ... }: { home.packages = [ @@ -19,6 +19,13 @@ 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; }; |