From c9ab46696df05aa19d889f11ee422f0c992f110a Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Mon, 3 Apr 2023 20:36:05 -0400 Subject: [PATCH] reenable mbsync timer with notmuch fixes polybar mail indicator --- modules/common/mail/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/common/mail/default.nix b/modules/common/mail/default.nix index 27e3a16..77267de 100644 --- a/modules/common/mail/default.nix +++ b/modules/common/mail/default.nix @@ -27,6 +27,11 @@ home-manager.users.${config.user} = { programs.mbsync = { enable = true; }; + services.mbsync = lib.mkIf pkgs.stdenv.isLinux { + enable = true; + frequency = "*:0/5"; + postExec = "${pkgs.notmuch}/bin/notmuch new"; + }; services.imapnotify.enable = pkgs.stdenv.isLinux && config.physical; programs.notmuch.enable = true; accounts.email = {