mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-05 07:05:40 +01:00
feat: adds smartd, changes scrutiny to be more generic smart stuff
This commit is contained in:
parent
71081eb600
commit
17bc3c6d52
3 changed files with 34 additions and 20 deletions
31
modules/services/smart-monitoring.nix
Normal file
31
modules/services/smart-monitoring.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
services.scrutiny = {
|
||||
enable = true;
|
||||
collector.enable = true;
|
||||
settings.web.listen.port = 8181;
|
||||
settings.notify.urls = [
|
||||
# "ntfy://${config.liv.variables.ntfyURL}/${config.networking.hostName}"
|
||||
"ntfy://notify.liv.town/${config.networking.hostName}"
|
||||
];
|
||||
};
|
||||
|
||||
services.smartd = {
|
||||
enable = true;
|
||||
autodetect = true;
|
||||
notifications = {
|
||||
mail = {
|
||||
enable = true;
|
||||
# mailer = "/path/to/mailer/binary";
|
||||
sender = "${config.liv.variables.fromEmail}";
|
||||
recipient = "${config.liv.variables.toEmail}";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# services.nginx.virtualHosts."" = {
|
||||
# locations."/" = {
|
||||
# proxyPass = "http://localhost:8181/";
|
||||
# };
|
||||
# };
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue