users/kat/personal: imapnotify for mail

This commit is contained in:
kat witch 2021-09-04 18:27:21 +01:00
parent 47eb81f150
commit a23c94f597
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
2 changed files with 21 additions and 13 deletions

View file

@ -2,15 +2,19 @@
{
config = {
programs.notmuch = {
enable = true;
hooks = { preNew = "mbsync --all"; };
programs = {
notmuch = {
enable = true;
hooks = { preNew = "mbsync --all"; };
};
mbsync.enable = true;
msmtp.enable = true;
vim.plugins = [ pkgs.vimPlugins.notmuch-vim ];
neovim.plugins = [ pkgs.vimPlugins.notmuch-vim ];
};
programs.mbsync.enable = true;
programs.msmtp.enable = true;
programs.vim.plugins = [ pkgs.vimPlugins.notmuch-vim ];
services.imapnotify.enable = true;
accounts.email = {
maildirBasePath = "${config.home.homeDirectory}/mail";
@ -20,12 +24,19 @@
realName = "kat witch";
userName = "kat@kittywit.ch";
msmtp.enable = true;
mbsync.enable = true;
mbsync.create = "maildir";
mbsync = {
enable = true;
create = "maildir";
};
notmuch.enable = true;
imapnotify = {
enable = true;
boxes = [ "Inbox" ];
onNotifyPost = "${pkgs.notmuch}/bin/notmuch new && ${pkgs.libnotify}/bin/notify-send 'New mail arrived'";
};
imap.host = "athame.kittywit.ch";
smtp.host = "athame.kittywit.ch";
passwordCommand = "${pkgs.pass}/bin/pass email/kittywitch";
passwordCommand = "bitw get services/email/kittywitch -f password";
gpg = {
signByDefault = true;
key = "01F50A29D4AA91175A11BDB17248991EFA8EFBEE";

View file

@ -5,8 +5,5 @@
extraConfig = ''
source ${./init.vim}
'';
plugins = with pkgs.vimPlugins; [
notmuch-vim
];
};
}