Let smartd send mail notification #92

Merged
frero merged 1 commits from add-mail-to-smartd into main 2024-11-24 01:09:59 +01:00
1 changed files with 12 additions and 2 deletions
Showing only changes of commit 69462bf486 - Show all commits

View File

@ -1,8 +1,18 @@
{ 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; [
smartmontools
]);
}
}