reenable mbsync timer with notmuch

fixes polybar mail indicator
This commit is contained in:
Noah Masur 2023-04-03 20:36:05 -04:00
parent b5790a2795
commit c9ab46696d

View File

@ -27,6 +27,11 @@
home-manager.users.${config.user} = { home-manager.users.${config.user} = {
programs.mbsync = { enable = true; }; 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; services.imapnotify.enable = pkgs.stdenv.isLinux && config.physical;
programs.notmuch.enable = true; programs.notmuch.enable = true;
accounts.email = { accounts.email = {