mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
feat: enable scrutiny on dandelion, disable otherwise; enable smartd with system mailer
This commit is contained in:
parent
24b6a385d6
commit
3401e1d05a
1 changed files with 24 additions and 14 deletions
|
|
@ -1,7 +1,15 @@
|
||||||
{ config, ... }:
|
{ config, host, ... }:
|
||||||
{
|
{
|
||||||
|
imports = [ ./email.nix ];
|
||||||
services.scrutiny = {
|
services.scrutiny = {
|
||||||
enable = true;
|
# Enable based on name of host
|
||||||
|
enable =
|
||||||
|
if (host == "dandelion") then
|
||||||
|
true
|
||||||
|
else if (host == "lily") then
|
||||||
|
true
|
||||||
|
else
|
||||||
|
false;
|
||||||
collector.enable = true;
|
collector.enable = true;
|
||||||
settings.web.listen.port = 8181;
|
settings.web.listen.port = 8181;
|
||||||
settings.notify.urls = [
|
settings.notify.urls = [
|
||||||
|
|
@ -10,18 +18,20 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# services.smartd = {
|
services.smartd = {
|
||||||
# enable = true;
|
enable = true;
|
||||||
# autodetect = true;
|
autodetect = true;
|
||||||
# notifications = {
|
notifications = {
|
||||||
# mail = {
|
wall = {
|
||||||
# enable = true;
|
enable = true;
|
||||||
# # mailer = "/path/to/mailer/binary"; # Need to get system emails working first
|
};
|
||||||
# sender = "${config.liv.variables.fromEmail}";
|
mail = {
|
||||||
# recipient = "${config.liv.variables.toEmail}";
|
enable = true;
|
||||||
# };
|
sender = config.liv.variables.senderEmail;
|
||||||
# };
|
recipient = config.liv.variables.email;
|
||||||
# };
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# services.nginx.virtualHosts."" = {
|
# services.nginx.virtualHosts."" = {
|
||||||
# locations."/" = {
|
# locations."/" = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue