move msmtp config to nix

This commit is contained in:
Grigory Shipunov 2022-08-12 01:33:11 +02:00
parent 2644fd3234
commit ddfa13bd4d
Signed by: 0xa
GPG key ID: 91FA5E5BF9AA901C

View file

@ -27,7 +27,43 @@ in
programs.msmtp = { programs.msmtp = {
enable = true; enable = true;
setSendmail = true; setSendmail = true;
extraConfig = ''
account mail@oxapentane.com
host smtp.migadu.com
port 587
from *@oxapentane.com
user mail@oxapentane.com
passwordeval cat ${config.sops.secrets."mail/oxapentane.com".path}
auth on
tls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt
logfile ~/.msmtp.log
account grigory@shipunov.xyz
host smtp.migadu.com
port 587
from *@shipunov.xyz
user grigory@shipunov.xyz
passwordeval cat ${config.sops.secrets."mail/shipunov.xyz".path}
auth on
tls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt
logfile ~/.msmtp.log
account dump@dvb.solutions
host smtp.migadu.com
port 587
from dump@dvb.solutions
user dump@dvb.solutions
passwordeval cat ${config.sops.secrets."mail/dvb.solutions".path}
auth on
tls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt
logfile ~/.msmtp.log
'';
}; };
systemd.user = { systemd.user = {
services.mbsync = { services.mbsync = {