Run notifymuch in mbsync service
This commit is contained in:
parent
d1483e5989
commit
412cde08cf
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in a new issue