Compare commits

..

2 commits

Author SHA1 Message Date
sid
8ff1397a8d Merge pull request 'netdata: add old ui' (#93) from develop into master
All checks were successful
Deploy configs / deploy-configs (push) Successful in 34s
Reviewed-on: #93
2026-05-22 21:06:14 +02:00
sid
ac4e31bb7d netdata: add old ui
All checks were successful
Build hosts / build-hosts (pull_request) Successful in 19s
Flake check / flake-check (pull_request) Successful in 21s
2026-05-22 21:05:07 +02:00
2 changed files with 37 additions and 1 deletions

View file

@ -38,7 +38,7 @@ rec {
port = 8085;
};
netdata = {
# fqdn = "mon." + domain;
fqdn = "mon." + domain;
port = 19999;
};
open-webui-oci = {

View file

@ -1,11 +1,32 @@
{
config,
constants,
lib,
pkgs,
...
}:
let
email = "sid@${config.networking.domain}";
netdata-dashboard = pkgs.stdenvNoCC.mkDerivation {
pname = "netdata-dashboard";
version = "2.31.0";
src = pkgs.fetchurl {
url = "https://github.com/netdata/dashboard/releases/download/v2.31.0/dashboard.tar.gz";
hash = "sha256-n7M7Y8LIb4tbgQ8wQIr5bMKxLT5fPDID5LnX47ayH/o=";
};
dontUnpack = true;
installPhase = ''
mkdir -p $out
tar -xzf $src --strip-components=1 -C $out
'';
meta.license = lib.licenses.gpl3Only;
};
in
{
services.netdata = {
@ -34,6 +55,21 @@ in
NETDATA_USER_CONFIG_DIR = "/etc/netdata/conf.d";
};
services.nginx.virtualHosts."${constants.services.netdata.fqdn}" = {
enableACME = true;
forceSSL = true;
locations."/" = {
root = netdata-dashboard;
tryFiles = "$uri $uri/ /index.html";
};
locations."~ ^/(api|v[0-9]+|netdata.conf|registry|stream)(/|$)" = {
proxyPass = "http://127.0.0.1:${toString constants.services.netdata.port}";
recommendedProxySettings = true;
};
};
services.journald.storage = "persistent";
users.users.netdata.extraGroups = [ "systemd-journal" ];