summaryrefslogtreecommitdiff
path: root/hosts/poweredge/notification-mailer.nix
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2026-03-28 18:46:16 -0500
committerTim Keller <tjk@tjkeller.xyz>2026-03-28 18:46:16 -0500
commit07cc1920136ce61980c80c6bde3c267fcbc6218f (patch)
treec2a2afeaf1d782c54347a2baaee0429ec9449bd3 /hosts/poweredge/notification-mailer.nix
parent23b92aaaa7702221e80199c9d47fa1f73b3722c1 (diff)
downloadnixos-07cc1920136ce61980c80c6bde3c267fcbc6218f.tar.xz
nixos-07cc1920136ce61980c80c6bde3c267fcbc6218f.zip
begin poweredge config
Diffstat (limited to 'hosts/poweredge/notification-mailer.nix')
-rw-r--r--hosts/poweredge/notification-mailer.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/hosts/poweredge/notification-mailer.nix b/hosts/poweredge/notification-mailer.nix
new file mode 100644
index 0000000..25e2e2b
--- /dev/null
+++ b/hosts/poweredge/notification-mailer.nix
@@ -0,0 +1,27 @@
+{ config, ... }: let
+ serverEmail = "poweredge@tjkeller.xyz";
+in {
+ # Mailer password secret for mail application password
+ sops.secrets.mailerPassword.sopsFile = ./resources/secrets/mailer.yaml;
+
+ # Enable mta for system event notifications
+ services.mail._mailer = {
+ sender = {
+ host = "mail.tjkeller.xyz";
+ user = serverEmail;
+ from = serverEmail;
+ passwordFile = config.sops.secrets.mailerPassword.path;
+ };
+ recipient = serverEmail;
+ }
+
+ # Enable zed mailer module
+ services.zfs._zedMailer.enable = true;
+
+ # Enable smartd notifications
+ services.smartd.notifications.mail = {
+ enable = true;
+ sender = serverEmail;
+ recipient = serverEmail;
+ };
+}