email setup using emacs and notmuch

This commit is contained in:
Khaïs COLIN 2025-02-27 16:09:04 +01:00
parent 15c81b97d5
commit 4d77f320a6
Signed by: logistic-bot
SSH key fingerprint: SHA256:RlpiqKeXpcPFZZ4y9Ou4xi2M8OhRJovIwDlbCaMsuAo
3 changed files with 421 additions and 1 deletions

View file

@ -35,6 +35,7 @@ in {
discord
# passwords
bitwarden-desktop
bitwarden-cli
# editors
nixvim
# make clipboard yanking work in neovim
@ -276,4 +277,59 @@ in {
};
programs.rofi.enable = true;
# email
programs.mbsync.enable = true;
programs.msmtp.enable = true;
programs.lieer = {
enable = true;
};
accounts.email.accounts.gmail = {
address = "khais.colin@gmail.com";
mbsync = {
enable = false;
create = "maildir";
};
lieer = {
enable = true;
settings.local_trash_tag = "killed";
sync.enable = true;
};
msmtp.enable = true;
notmuch.enable = true;
primary = true;
realName = "Khaïs COLIN";
signature = {
text = ''
Cordialement,
-- Khaïs COLIN
'';
showSignature = "append";
};
passwordCommand = "cat /home/khais/.home-manager-gmail-password";
userName = "khais.colin@gmail.com";
flavor = "gmail.com";
};
programs.notmuch = {
enable = true;
new = {
tags = ["new" "unread"];
};
hooks = {
preNew = "gmi sync --path ~/Maildir/gmail; mbsync --all";
postNew = "afew --verbose --tag --new";
};
search.excludeTags = [
"killed"
"spam"
];
};
programs.afew = {
enable = true;
extraConfig = builtins.readFile ./afew.config;
};
}