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 = { services = {
mbsync = { mbsync = {
enable = true; enable = true;
postExec = "${pkgs.notmuch}/bin/notmuch new"; postExec = ''
${pkgs.notmuch}/bin/notmuch new
${pkgs.notifymuch}/bin/notifymuch
'';
}; };
vdirsyncer.enable = true; vdirsyncer.enable = true;
}; };

View file

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