nixos/kelder: Add SMART and netdata

This commit is contained in:
Jack O'Sullivan 2023-05-28 13:58:42 +01:00
parent 1f0c3c4160
commit b041f135f3
2 changed files with 31 additions and 0 deletions

View File

@ -135,6 +135,25 @@ in
};
};
"monitor.${lib.my.kelder.domain}" = withAuth {
serverAliases = [ "monitor-local.${lib.my.kelder.domain}" ];
locations = {
"/" = {
proxyPass = "http://${allAssignments.kelder.ctrs.ipv4.address}:19999";
extraConfig = ''
proxy_pass_request_headers on;
${lib.my.nginx.proxyHeaders}
proxy_set_header Connection "keep-alive";
proxy_store off;
gzip on;
gzip_proxied any;
gzip_types *;
'';
};
};
};
"kontent.${lib.my.kelder.domain}" = {
extraConfig = localRedirect "kontent-local.${lib.my.kelder.domain}";
serverAliases = [ "kontent-local.${lib.my.kelder.domain}" ];

View File

@ -110,6 +110,14 @@ in
greetingLine = ''Welcome to ${config.system.nixos.distroName} ${config.system.nixos.label} (\m) - \l'';
helpLine = "\nCall Jack for help.";
};
smartd = {
enable = true;
autodetect = true;
extraOptions = [ "-A /var/log/smartd/" "--interval=600" ];
};
netdata = {
enable = true;
};
ddclient = {
enable = true;
@ -159,6 +167,10 @@ in
system.nixos.distroName = "KelderOS";
systemd = {
tmpfiles.rules = [
"d /var/log/smartd 0755 root root"
];
network = {
netdevs = {
"25-ctrs".netdevConfig = {