email: add kh.col account
This commit is contained in:
parent
4d77f320a6
commit
cc3657e753
1 changed files with 28 additions and 5 deletions
33
home.nix
33
home.nix
|
|
@ -281,6 +281,7 @@ in {
|
|||
# email
|
||||
programs.mbsync.enable = true;
|
||||
programs.msmtp.enable = true;
|
||||
programs.offlineimap.enable = true;
|
||||
|
||||
programs.lieer = {
|
||||
enable = true;
|
||||
|
|
@ -288,10 +289,6 @@ in {
|
|||
|
||||
accounts.email.accounts.gmail = {
|
||||
address = "khais.colin@gmail.com";
|
||||
mbsync = {
|
||||
enable = false;
|
||||
create = "maildir";
|
||||
};
|
||||
lieer = {
|
||||
enable = true;
|
||||
settings.local_trash_tag = "killed";
|
||||
|
|
@ -313,13 +310,39 @@ in {
|
|||
flavor = "gmail.com";
|
||||
};
|
||||
|
||||
accounts.email.accounts.orange = {
|
||||
address = "kh.col@orange.fr";
|
||||
offlineimap = {
|
||||
enable = true;
|
||||
};
|
||||
msmtp.enable = true;
|
||||
notmuch.enable = true;
|
||||
realName = "Khaïs COLIN";
|
||||
signature = {
|
||||
text = ''
|
||||
Cordialement,
|
||||
-- Khaïs COLIN
|
||||
'';
|
||||
showSignature = "append";
|
||||
};
|
||||
passwordCommand = "cat /home/khais/.home-manager-orange-password";
|
||||
userName = "kh.col@orange.fr";
|
||||
imap = {
|
||||
host = "imap.orange.fr";
|
||||
port = 993;
|
||||
};
|
||||
smtp = {
|
||||
host = "smtp.orange.fr";
|
||||
};
|
||||
};
|
||||
|
||||
programs.notmuch = {
|
||||
enable = true;
|
||||
new = {
|
||||
tags = ["new" "unread"];
|
||||
};
|
||||
hooks = {
|
||||
preNew = "gmi sync --path ~/Maildir/gmail; mbsync --all";
|
||||
preNew = "gmi sync --path ~/Maildir/gmail; offlineimap";
|
||||
postNew = "afew --verbose --tag --new";
|
||||
};
|
||||
search.excludeTags = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue