feat(hosts/luna): integrate mail status & smartd
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 34s

This commit is contained in:
Price Hiller 2025-01-15 16:32:44 -06:00
parent 4812526b22
commit 216ecaad7c
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB
3 changed files with 36 additions and 1 deletions

View File

@ -0,0 +1,23 @@
{ 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}";
};
};
}

View File

@ -0,0 +1,12 @@
{ ... }:
{
services.smartd = {
enable = true;
notifications.mail.enable = true;
devices = [
{
device = "/dev/nvme0";
}
];
};
}

@ -1 +1 @@
Subproject commit f39f9c879ae7d9227f843a82155900234aa263a6
Subproject commit 345e642d941aa814d591aade8db86a4d8fb76a42