Price Hiller 216ecaad7c
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 34s
feat(hosts/luna): integrate mail status & smartd
2025-01-15 16:32:44 -06:00

23 lines
634 B
Nix

{ config, pkgs, ... }:
{
programs.msmtp = {
enable = true;
defaults = {
port = 465;
tls = true;
tls_starttls = false;
aliases = pkgs.writeText "msmtp-aliases" ''
default: monitoring@price-hiller.com
'';
allow_from_override = false;
};
accounts.default = {
auth = true;
host = "smtp.purelymail.com";
from = "%U.%H@${config.networking.domain}";
from_full_name = "${config.networking.hostName}";
user = "monitoring@${config.networking.domain}";
passwordeval = "${pkgs.coreutils}/bin/cat ${config.age.secrets.mail-pass.path}";
};
};
}