X-Git-Url: https://git.kernelpanic.cafe/?p=MarigoldOS%2F.git;a=blobdiff_plain;f=profiles%2Fntopng.nix;fp=profiles%2Fntopng.nix;h=97c299001d3bb70ced384628a8a3aa51af911a05;hp=0000000000000000000000000000000000000000;hb=67ab519bdaf4d57595dc267cf023d7b2f76d5485;hpb=83750770c24445bcc9464ff863a71db6d1c8b5df diff --git a/profiles/ntopng.nix b/profiles/ntopng.nix new file mode 100644 index 0000000..97c2990 --- /dev/null +++ b/profiles/ntopng.nix @@ -0,0 +1,15 @@ +{ config, lib, ... }: +let + fqdn = "ntop.${config.networking.hostName}.${config.networking.domain}"; +in { + networking.hosts = { + "127.0.0.1" = [ fqdn ]; + }; + services.ntopng = { + enable = true; + services.ntopng.interfaces = [ + "any" + ]; + }; + helpers.webservices."${fqdn}".port = config.services.ntopng.httpPort; +}