summaryrefslogtreecommitdiff
path: root/os/srv/ntopng.nix
diff options
context:
space:
mode:
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 = [
+ ""
+ ""
+ ];
+ };
+ };
+}