Services: fix msmtp
This commit is contained in:
parent
446c0afd75
commit
0e27201be5
|
@ -12,6 +12,7 @@ in
|
|||
config = lib.mkIf cfg.enable {
|
||||
programs.msmtp = {
|
||||
enable = true;
|
||||
defaults.aliases = "/etc/aliases";
|
||||
accounts.default = {
|
||||
host = config.secrets.services.msmtp.host;
|
||||
user = config.secrets.services.msmtp.user;
|
||||
|
@ -21,8 +22,15 @@ in
|
|||
tls_starttls = true;
|
||||
port = 587;
|
||||
from = "${config.networking.hostName}@${config.secrets.networking.primaryDomain}";
|
||||
to = config.secrets.users.aires.email;
|
||||
};
|
||||
};
|
||||
|
||||
# Send all mail to my email address by default
|
||||
environment.etc."aliases" = {
|
||||
text = ''
|
||||
default: ${config.secrets.users.aires.email}
|
||||
'';
|
||||
mode = "0644";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue