feat: setup email notification on systemd failures
This commit is contained in:
parent
ed11e6c19a
commit
68d499f5cf
4 changed files with 103 additions and 0 deletions
7
rpi4.nix
7
rpi4.nix
|
@ -16,6 +16,8 @@ in with builtins; {
|
|||
./system/nix.nix
|
||||
./system/i18n.nix
|
||||
./system/networking.nix
|
||||
./modules/emailNotify.nix
|
||||
./services/mail.nix
|
||||
./services/restic/rpi4.nix
|
||||
./services/samba/rpi4.nix
|
||||
./services/syncthing/rpi4.nix
|
||||
|
@ -109,6 +111,11 @@ in with builtins; {
|
|||
|
||||
virtualisation.oci-containers.backend = "podman";
|
||||
|
||||
systemd.emailNotify.enable = true;
|
||||
systemd.emailNotify.mailTo = "admin@felschr.com";
|
||||
systemd.emailNotify.mailFrom =
|
||||
"${config.networking.hostName} <felschr@web.de>";
|
||||
|
||||
# only change this when specified in release notes
|
||||
system.stateVersion = "21.11";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue