Rupert: Enable smartd
This commit is contained in:
parent
81cf231f68
commit
a002c1476d
|
@ -128,6 +128,16 @@ in
|
||||||
|
|
||||||
# systemd.services.nixos-upgrade.onFailure = lib.mkIf config.system.autoUpgrade.enable [ "status-email@%n.service" ];
|
# systemd.services.nixos-upgrade.onFailure = lib.mkIf config.system.autoUpgrade.enable [ "status-email@%n.service" ];
|
||||||
|
|
||||||
|
services.smartd = {
|
||||||
|
enable = true;
|
||||||
|
notifications.x11.enable = false;
|
||||||
|
notifications.mail = {
|
||||||
|
enable = true;
|
||||||
|
sender = config.email.fromAddress;
|
||||||
|
recipient = config.email.adminEmail;
|
||||||
|
mailer = "${pkgs.system-sendmail}/bin/sendmail";
|
||||||
|
};
|
||||||
|
};
|
||||||
services.btrfsScrub = {
|
services.btrfsScrub = {
|
||||||
enable = true;
|
enable = true;
|
||||||
paths = {
|
paths = {
|
||||||
|
|
Loading…
Reference in a new issue