1
0
Fork 0

Merge pull request 'Let smartd send mail notification' (!92) from add-mail-to-smartd into main

Reviewed-on: Drift/pvv-nixos-config#92
Reviewed-by: Oystein Kristoffer Tveit <oysteikt@pvv.ntnu.no>

Closes #92
This commit is contained in:
Fredrik Robertsen 2024-11-24 01:09:58 +01:00
commit c60597dc5a
1 changed files with 12 additions and 2 deletions

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
]);
}
}