email setup using emacs and notmuch
This commit is contained in:
parent
15c81b97d5
commit
4d77f320a6
3 changed files with 421 additions and 1 deletions
56
home.nix
56
home.nix
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue