Run notifymuch in mbsync service

This commit is contained in:
Evie Litherland-Smith 2023-09-29 08:11:32 +01:00
parent d1483e5989
commit 412cde08cf
2 changed files with 5 additions and 5 deletions

View file

@ -5,7 +5,10 @@
services = {
mbsync = {
enable = true;
postExec = "${pkgs.notmuch}/bin/notmuch new";
postExec = ''
${pkgs.notmuch}/bin/notmuch new
${pkgs.notifymuch}/bin/notifymuch
'';
};
vdirsyncer.enable = true;
};

View file

@ -10,10 +10,7 @@
icloud = [ "INBOX" ];
};
};
notmuch = {
enable = true;
hooks.postNew = "${pkgs.notifymuch}/bin/notifymuch";
};
notmuch.enable = true;
msmtp.enable = true;
};
accounts.email = {