diff --git a/mail-server.nix b/mail-server.nix index d98475f..ca0fbc8 100644 --- a/mail-server.nix +++ b/mail-server.nix @@ -41,12 +41,18 @@ in { default = [ ]; }; - metricsPort = mkOption { + metrics-port = mkOption { type = port; description = "Port on which to serve metrics."; default = metricsPort; }; + trusted-networks = mkOption { + type = listOf str; + description = "List of networks to be considered trusted."; + default = [ ]; + }; + ldap = { authentik-host = mkOption { type = str; @@ -401,7 +407,7 @@ in { metrics-proxy = { service = { networks = [ "internal_network" ]; - ports = [ "${toString cfg.metricsPort}:80" ]; + ports = [ "${toString cfg.metrics-port}:80" ]; }; nixos = { useSystemd = true;