fix: get email for notifications working

This commit is contained in:
Ahwx 2025-11-03 23:57:34 +01:00
parent 68cff3eed6
commit fc6ad6c627

View file

@ -1,14 +1,21 @@
{ {
pkgs, pkgs,
config, config,
username,
... ...
}: }:
{ {
environment.systemPackages = [ pkgs.mailutils ];
programs.msmtp = { programs.msmtp = {
enable = true; enable = true;
accounts.default = { defaults = {
auth = true; auth = "on";
tls = true; tls = "on";
logfile = "/var/log/msmtpd.log";
};
accounts.${username} = {
tls_starttls = "off";
port = 465; port = 465;
host = "smtp.migadu.com"; host = "smtp.migadu.com";
from = config.liv.variables.senderEmail; from = config.liv.variables.senderEmail;