mbsync wrapper to call notmuch after syncing
This commit is contained in:
parent
783b25cea4
commit
dccd1a7407
@ -98,11 +98,16 @@ in {
|
||||
extraBinds = builtins.readFile ./aerc/binds.conf;
|
||||
};
|
||||
services.mbsync.enable = true;
|
||||
programs.mbsync.enable = true;
|
||||
programs.mbsync = {
|
||||
enable = true;
|
||||
package = pkgs.writeShellScriptBin "mbsync" ''
|
||||
${pkgs.isync}/bin/mbsync $@
|
||||
${pkgs.notmuch}/bin/notmuch new
|
||||
'';
|
||||
};
|
||||
services.imapnotify.enable = true;
|
||||
programs.notmuch = {
|
||||
enable = true;
|
||||
hooks.preNew = "mbsync --all";
|
||||
};
|
||||
|
||||
programs.neomutt = {
|
||||
|
Loading…
Reference in New Issue
Block a user