blob: d965c18816e80fe7acd1a3fd3cec5b231714c48f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
{ lib, config, ... }:
{
enable = lib.mkDefault config.monorepo.profiles.home.email.enable;
extraConfig = ''
# Set default values for all following accounts.
defaults
auth on
tls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt
tls_certcheck off
logfile ~/.msmtp.log
# Gmail
account ${config.monorepo.vars.userName}
host ${config.monorepo.profiles.home.email.smtpsServer}
port 587
from ${config.monorepo.profiles.home.email.email}
user ${config.monorepo.profiles.home.email.email}
passwordeval "cat ${config.sops.secrets.mail.path}"
# Set a default account
account default : ${config.monorepo.vars.userName}
'';
}
|