diff --git a/nixos/modules/services/networking/netbird/coturn.nix b/nixos/modules/services/networking/netbird/coturn.nix index dd032abb2d75..746d70a07250 100644 --- a/nixos/modules/services/networking/netbird/coturn.nix +++ b/nixos/modules/services/networking/netbird/coturn.nix @@ -148,10 +148,10 @@ in allowedUDPPorts = cfg.openPorts; allowedTCPPorts = cfg.openPorts; - allowedUDPPortRanges = [ + allowedUDPPortRanges = with config.services.coturn; [ { - from = cfg.minPort; - to = cfg.maxPort; + from = min-port; + to = max-port; } ]; };