{ 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; }