diff options
Diffstat (limited to 'os/srv/ntopng.nix')
| -rw-r--r-- | os/srv/ntopng.nix | 20 |
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 = [ + "" + "" + ]; + }; + }; +} |
