mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
users/kat/personal: imapnotify for mail
This commit is contained in:
parent
47eb81f150
commit
a23c94f597
2 changed files with 21 additions and 13 deletions
|
|
@ -2,15 +2,19 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
config = {
|
config = {
|
||||||
programs.notmuch = {
|
programs = {
|
||||||
enable = true;
|
notmuch = {
|
||||||
hooks = { preNew = "mbsync --all"; };
|
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;
|
services.imapnotify.enable = true;
|
||||||
programs.msmtp.enable = true;
|
|
||||||
|
|
||||||
programs.vim.plugins = [ pkgs.vimPlugins.notmuch-vim ];
|
|
||||||
|
|
||||||
accounts.email = {
|
accounts.email = {
|
||||||
maildirBasePath = "${config.home.homeDirectory}/mail";
|
maildirBasePath = "${config.home.homeDirectory}/mail";
|
||||||
|
|
@ -20,12 +24,19 @@
|
||||||
realName = "kat witch";
|
realName = "kat witch";
|
||||||
userName = "kat@kittywit.ch";
|
userName = "kat@kittywit.ch";
|
||||||
msmtp.enable = true;
|
msmtp.enable = true;
|
||||||
mbsync.enable = true;
|
mbsync = {
|
||||||
mbsync.create = "maildir";
|
enable = true;
|
||||||
|
create = "maildir";
|
||||||
|
};
|
||||||
notmuch.enable = true;
|
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";
|
imap.host = "athame.kittywit.ch";
|
||||||
smtp.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 = {
|
gpg = {
|
||||||
signByDefault = true;
|
signByDefault = true;
|
||||||
key = "01F50A29D4AA91175A11BDB17248991EFA8EFBEE";
|
key = "01F50A29D4AA91175A11BDB17248991EFA8EFBEE";
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,5 @@
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
source ${./init.vim}
|
source ${./init.vim}
|
||||||
'';
|
'';
|
||||||
plugins = with pkgs.vimPlugins; [
|
|
||||||
notmuch-vim
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue