summaryrefslogtreecommitdiff
path: root/os/srv/ntopng.nix
diff options
context:
space:
mode:
authoradikro <adikro@disroot.org>2026-05-23 21:32:00 +0200
committeradikro <adikro@disroot.org>2026-05-23 21:32:00 +0200
commitc7abbc56562f9745d9d1bb29f3c0d4874425e92c (patch)
tree2e652540993b69b0d33260902b85ea1c2207d3f6 /os/srv/ntopng.nix
parentc6b6a3e6c702834eac2b633db2ed4c397b4ae113 (diff)
updates
Diffstat (limited to 'os/srv/ntopng.nix')
-rw-r--r--os/srv/ntopng.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/os/srv/ntopng.nix b/os/srv/ntopng.nix
new file mode 100644
index 0000000..3c11534
--- /dev/null
+++ b/os/srv/ntopng.nix
@@ -0,0 +1,20 @@
+{ config, lib, ... }:
+let
+ cfg = config.os.srv.ntopng;
+in
+{
+ options.os.srv.ntopng.enable = lib.mkEnableOption "enables ntopng monitoring";
+ config = lib.mkIf cfg.enable {
+ services.ntopng = {
+ enable = true;
+ httpPort = 3000;
+ extraConfig = "--packet-fanout";
+
+ # TODO fill interfaces
+ interfaces = [
+ ""
+ ""
+ ];
+ };
+ };
+}