nixos/kelder: Add SMART and netdata
This commit is contained in:
		@@ -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}" ];
 | 
			
		||||
 
 | 
			
		||||
@@ -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 = {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user