Add daily ZFS health check with ntfy alerts and introduce ntfy role

Add a zfs-alerts module that runs a daily health check on ZFS machines,
sending detailed ntfy notifications for degraded pools, data errors, or
drive errors. Introduce an "ntfy" system role to decouple ntfy alerting
from the server/personal roles, and assign it to all machines.
This commit is contained in:
2026-02-22 17:17:40 -08:00
parent 200d5a5d22
commit a697ea10ad
8 changed files with 94 additions and 1 deletions

View File

@@ -18,7 +18,7 @@ in
};
};
config = lib.mkIf (config.thisMachine.hasRole."server" || config.thisMachine.hasRole."personal") {
config = lib.mkIf config.thisMachine.hasRole."ntfy" {
age.secrets.ntfy-token.file = ../secrets/ntfy-token.age;
systemd.services."ntfy-failure@" = {