From 18c8534783d8c0306702bbc0773aa72ca673f2a2 Mon Sep 17 00:00:00 2001 From: 4DBug <4DBug@github.com> Date: Mon, 9 Feb 2026 22:22:46 -0600 Subject: [PATCH] push --- modules/netdata.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 modules/netdata.nix diff --git a/modules/netdata.nix b/modules/netdata.nix new file mode 100644 index 0000000..39640c0 --- /dev/null +++ b/modules/netdata.nix @@ -0,0 +1,30 @@ +{ config, pkgs, ... }: + +{ + # open the netdata port + networking.firewall.allowedTCPPorts = [ 19999 ]; + + services.netdata = { + enable = true; + + # small example config mapped to netdata.conf sections + config = { + global = { + "memory mode" = "ram"; # keep in memory for speed + "debug log" = "none"; + }; + + web = { + # bind the dashboard to all interfaces (or set to "127.0.0.1:19999" for local-only) + "bind to" = "0.0.0.0:19999"; + }; + + # enable go.d nvidia_smi collector (Netdata reads go.d configs) + "go.d" = { + nvidia_smi = { + enabled = "yes"; # note: Netdata expects string values matching netdata.conf keys + }; + }; + }; + }; +}