FIX : mails config and add notmuch primary support
This commit is contained in:
parent
7b2a946321
commit
50ea97f8f3
|
@ -1,7 +1,7 @@
|
|||
IMAPAccount DRI
|
||||
Host imap.dri.fr
|
||||
User 1847_alexandre
|
||||
PassCmd "pass email/alexandre"
|
||||
PassCmd "keepassxc-cli show -a Password --no-password -k $HOME/keys/emails.key $HOME/Nextcloud/PRIVE/Keepass/emails.kbx emails"
|
||||
SSLType None
|
||||
|
||||
IMAPStore DRI-remote
|
||||
|
|
|
@ -14,5 +14,5 @@ port 587
|
|||
domain dri.fr
|
||||
from alexandre@dri.fr
|
||||
user 1847_alexandre
|
||||
passwordeval "pass email/alexandre"
|
||||
passwordeval "keepassxc-cli show -a Password --no-password -k $HOME/keys/emails.key $HOME/Nextcloud/PRIVE/Keepass/emails.kbx emails"
|
||||
auth plain
|
||||
|
|
|
@ -1,34 +1,42 @@
|
|||
{ pkgs, config, lib, ... }:{
|
||||
# accounts.email.maildirBasePath = "Mailsdir";
|
||||
# accounts.email.accounts = {
|
||||
# "alexandre" = rec {
|
||||
# primary = true;
|
||||
# address = "alexandre@dri.fr";
|
||||
# userName = "1847_alexandre";
|
||||
# flavor = "plain";
|
||||
# folders = {
|
||||
# inbox = "INBOX";
|
||||
# trash = "Junk";
|
||||
# };
|
||||
# imap = {
|
||||
# host = "imap.dri.fr";
|
||||
# tls.enable = false;
|
||||
# };
|
||||
# smtp = {
|
||||
# host = "smtp.dri.fr";
|
||||
# port = 587;
|
||||
# tls.enable = false;
|
||||
# };
|
||||
# passwordCommand = "pass email/alexandre";
|
||||
# mbsync.enable = true;
|
||||
# mbsync.create = true;
|
||||
# msmtp.enable = true;
|
||||
# msmtp.extraConfig = ''
|
||||
# auth plain
|
||||
# '';
|
||||
# };
|
||||
# };
|
||||
programs.msmtp.enable = true;
|
||||
accounts.email= {
|
||||
accounts = {
|
||||
dri = {
|
||||
primary = true;
|
||||
address = "alexandre@dri.fr";
|
||||
userName = "1847_alexandre";
|
||||
realName = "Alexandre LUCAZEAU";
|
||||
passwordCommand = "keepassxc-cli show -a Password --no-password -k $HOME/keys/emails.key $HOME/Nextcloud/PRIVE/Keepass/emails.kbx emails";
|
||||
flavor = "plain";
|
||||
folders = {
|
||||
inbox = "INBOX";
|
||||
trash = "Junk";
|
||||
};
|
||||
imap = {
|
||||
host = "imap.dri.fr";
|
||||
tls.enable = false;
|
||||
};
|
||||
smtp = {
|
||||
host = "smtp.dri.fr";
|
||||
port = 587;
|
||||
tls.enable = false;
|
||||
};
|
||||
|
||||
mbsync.enable = true;
|
||||
notmuch.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
services.mbsync = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
programs = {
|
||||
msmtp.enable = true;
|
||||
mbsync.enable = true;
|
||||
notmuch.enable = true;
|
||||
};
|
||||
xdg.configFile = {
|
||||
"msmtp/config".source= ./configs/msmtp_config;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue