2020-09-06 00:39:40 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
# Notify when a disk starts going haywire
|
|
|
|
services.smartd = {
|
|
|
|
enable = true;
|
|
|
|
notifications.mail = {
|
|
|
|
enable = true;
|
|
|
|
recipient = "akasroua@gmail.com";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# Enable trivial MTA for smartd notifications
|
|
|
|
services.ssmtp = {
|
|
|
|
enable = true;
|
|
|
|
useTLS = true;
|
|
|
|
useSTARTTLS = true;
|
|
|
|
domain = "gmail.com";
|
|
|
|
hostName = "smtp.gmail.com:587";
|
|
|
|
authUser = "akasroua@gmail.com";
|
2021-03-22 14:44:59 +01:00
|
|
|
authPassFile = "/var/keys/ssmtp";
|
2020-09-06 00:39:40 +02:00
|
|
|
};
|
|
|
|
}
|