feat(hosts/luna): integrate mail status & smartd
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 34s
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 34s
This commit is contained in:
parent
4812526b22
commit
216ecaad7c
23
hosts/luna/modules/monitoring/msmtp.nix
Normal file
23
hosts/luna/modules/monitoring/msmtp.nix
Normal 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}";
|
||||
};
|
||||
};
|
||||
}
|
12
hosts/luna/modules/monitoring/smartd.nix
Normal file
12
hosts/luna/modules/monitoring/smartd.nix
Normal file
@ -0,0 +1,12 @@
|
||||
{ ... }:
|
||||
{
|
||||
services.smartd = {
|
||||
enable = true;
|
||||
notifications.mail.enable = true;
|
||||
devices = [
|
||||
{
|
||||
device = "/dev/nvme0";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
2
secrets
2
secrets
@ -1 +1 @@
|
||||
Subproject commit f39f9c879ae7d9227f843a82155900234aa263a6
|
||||
Subproject commit 345e642d941aa814d591aade8db86a4d8fb76a42
|
Loading…
x
Reference in New Issue
Block a user