feat: expand systemd notify service with libnotify option

This commit is contained in:
Felix Schröter 2023-01-06 19:03:57 +01:00
parent 2afe18d1ce
commit 1da5ce612e
Signed by: felschr
GPG key ID: 671E39E6744C807D
5 changed files with 120 additions and 79 deletions

View file

@ -14,7 +14,7 @@ in with builtins; {
./hardware/gpu-intel.nix
./desktop/x11.nix
./system/server.nix
./modules/emailNotify.nix
./modules/systemdNotify.nix
./services/mail.nix
./services/restic/home-server.nix
./services/samba/home-server.nix
@ -134,10 +134,12 @@ in with builtins; {
};
};
systemd.emailNotify.enable = true;
systemd.emailNotify.mailTo = "admin@felschr.com";
systemd.emailNotify.mailFrom =
"${config.networking.hostName} <felschr@web.de>";
systemd.notify = {
enable = true;
method = "email";
email.mailTo = "admin@felschr.com";
email.mailFrom = "${config.networking.hostName} <felschr@web.de>";
};
# only change this when specified in release notes
system.stateVersion = "22.11";