let smartd send mail notification

This commit is contained in:
frero 2024-11-24 01:01:55 +01:00
parent c87a81eeee
commit 69462bf486
1 changed files with 12 additions and 2 deletions

View File

@ -1,8 +1,18 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
{ {
services.smartd.enable = lib.mkDefault true; services.smartd = {
enable = lib.mkDefault true;
notifications = {
mail = {
enable = true;
sender = "root@pvv.ntnu.no";
recipient = "root@pvv.ntnu.no";
};
wall.enable = false;
};
};
environment.systemPackages = lib.optionals config.services.smartd.enable (with pkgs; [ environment.systemPackages = lib.optionals config.services.smartd.enable (with pkgs; [
smartmontools smartmontools
]); ]);
} }