feat(architect): add netdata monitoring service

This commit is contained in:
Giulio De Pasquale 2024-12-06 23:30:35 +00:00
parent d971ab334e
commit 1cc6cf9f95
2 changed files with 27 additions and 0 deletions

View File

@ -39,6 +39,7 @@ in
./jellyseer.nix ./jellyseer.nix
./teslamate.nix ./teslamate.nix
./postgres.nix ./postgres.nix
./netdata.nix
]; ];
age.identityPaths = [ "/root/.ssh/id_ed25519" ]; age.identityPaths = [ "/root/.ssh/id_ed25519" ];

View File

@ -0,0 +1,26 @@
{ config, pkgs, ... }:
let
domain = "monitor.giugl.io";
in
{
services.netdata = {
enable = true;
package = pkgs.unstablePkgs.netdata;
config = {
db.mode = "dbengine";
};
};
architect.vhost.${domain} = with config.architect.networks; {
dnsInterfaces = [ "tailscale" "lan" ];
locations."/" = {
port = 19999;
allowLan = true;
allow = [
tailscale.net
];
};
};
}