2024-09-01 01:51:34 +02:00
|
|
|
{ config, pkgs, lib, ... }:
|
2024-09-01 01:22:56 +02:00
|
|
|
{
|
2024-11-24 01:01:55 +01:00
|
|
|
services.smartd = {
|
|
|
|
enable = lib.mkDefault true;
|
|
|
|
notifications = {
|
|
|
|
mail = {
|
|
|
|
enable = true;
|
|
|
|
sender = "root@pvv.ntnu.no";
|
|
|
|
recipient = "root@pvv.ntnu.no";
|
|
|
|
};
|
|
|
|
wall.enable = false;
|
|
|
|
};
|
|
|
|
};
|
2024-09-01 01:51:34 +02:00
|
|
|
|
|
|
|
environment.systemPackages = lib.optionals config.services.smartd.enable (with pkgs; [
|
|
|
|
smartmontools
|
|
|
|
]);
|
2024-12-09 21:03:50 +01:00
|
|
|
|
|
|
|
systemd.services.smartd.unitConfig.ConditionVirtualization = "no";
|
2024-11-24 01:01:55 +01:00
|
|
|
}
|