ADD : msmtp config files

ADD : activate and fix mails conf
FIX : i3status conf
NB : bug in email.nix module, that doesn't support auth plain, but only
auth on, so we load a config file
alacritty
Alexandre LUCAZEAU 2022-01-25 10:01:16 +01:00
parent f9a146537d
commit 7768a9eaba
4 changed files with 75 additions and 49 deletions

View File

@ -0,0 +1,18 @@
defaults
protocol smtp
auth on
tls off
tls_trust_file /etc/ssl/certs/ca-bundle.crt
syslog LOG_USER
logfile ~/.msmtp.log
timeout 60
account alexandre
host smtp.dri.fr
port 587
domain dri.fr
from alexandre@dri.fr
user 1847_alexandre
passwordeval "pass email/alexandre"
auth plain

View File

@ -7,7 +7,7 @@
./starship.nix
./i3status.nix
./emacs.nix
#./mails.nix
./mails.nix
];
home.keyboard = {
layout = "fr";

View File

@ -30,7 +30,30 @@
interval = 1;
format = "{1m}";
}
{ block = "sound"; }
{
block = "sound";
headphones_indicator = true;
on_click = "pavucontrol";
}
{
block = "net";
device = "enp0s20f0u6u1i5";
interval = 5;
format = "{graph_up}{graph_down}";
}
{
block = "net";
interval = 5;
device = "tun0";
hide_missing = true;
}
{
block = "net";
interval = 5;
device = "wlp2s0";
format = "{ssid} {signal_strength} {ip} {speed_down;K*b}";
hide_missing = true;
}
{
block = "backlight";
}

View File

@ -1,50 +1,35 @@
{ pkgs, ... }:
{
programs.mbsync.enable = true;
{ 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;
programs.notmuch = {
enable = true;
hooks = {
preNew = "mbsync --all";
};
};
accounts.email = {
accounts.dri = {
address = "alexandre@dri.fr";
gpg = {
key = "464CAA7A718D4CE84F03DFFE8B2EB421411BF613";
signByDefault = true ;
};
imap = {
host = "imap.dri.fr";
tls = {
enable = false;
};
};
folders = {
inbox = "INBOX";
};
mbsync = {
enable = true;
create = "maildir";
};
msmtp.enable = true;
notmuch.enable = true;
primary = true;
realName = "LUCAZEAU Alexandre";
userName = "1847_alexandre";
signature = {
text = ''
Avant Vente
'';
showsignature = "append";
};
passwordCommand = "gpg --quiet --for-your-eyes-only --no-tty --decrypt ~/.password-store/mails.gpg";
smtp = {
host = "smtp.dri.fr";
port = 587;
};
};
xdg.configFile = {
"msmtp/config".source= ./configs/msmtp_config;
};
}