Add notifymuch package with hook

Should get desktop notifications on new notmuch entries now

Trial different emacs email frontends
This commit is contained in:
Evie Litherland-Smith 2023-09-28 17:04:01 +01:00
parent 600606d554
commit 61c5434ba3
2 changed files with 6 additions and 3 deletions

View file

@ -1,7 +1,7 @@
{ pkgs, hostName, ... }: { pkgs, hostName, ... }:
{ {
home.packages = with pkgs; [ protonmail-bridge ]; home.packages = with pkgs; [ notifymuch protonmail-bridge ];
programs = { programs = {
mbsync = { mbsync = {
enable = true; enable = true;
@ -10,9 +10,12 @@
icloud = [ "INBOX" ]; icloud = [ "INBOX" ];
}; };
}; };
notmuch = {
enable = true;
hooks.postNew = "${pkgs.notifymuch}/bin/notifymuch";
};
msmtp.enable = true; msmtp.enable = true;
mu.enable = true; mu.enable = true;
notmuch.enable = true;
}; };
accounts.email = { accounts.email = {
maildirBasePath = ".mail"; maildirBasePath = ".mail";

View file

@ -178,7 +178,7 @@
:email :email
(mu4e +org +gmail) (mu4e +org +gmail)
(notmuch +afew +org) (notmuch +afew +org)
;; (wanderlust +gmail) (wanderlust +gmail)
:app :app
calendar calendar