diff --git a/home/mail/default.nix b/home/mail/default.nix index 6a3930c..bc7f746 100644 --- a/home/mail/default.nix +++ b/home/mail/default.nix @@ -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 = {