pvv-nixos-config/base/services/smartd.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
456 B
Nix
Raw Normal View History

{ 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;
};
};
environment.systemPackages = lib.optionals config.services.smartd.enable (with pkgs; [
smartmontools
]);
systemd.services.smartd.unitConfig.ConditionVirtualization = "no";
2024-11-24 01:01:55 +01:00
}