diff --git a/hosts/saberofxebec/homebridge.nix b/hosts/saberofxebec/homebridge.nix index f90b381..3f110dc 100644 --- a/hosts/saberofxebec/homebridge.nix +++ b/hosts/saberofxebec/homebridge.nix @@ -1,11 +1,21 @@ -{config, ...}: { +{config, ...}: let + accessoryStart = 20000; + accessoryEnd = 20200; + in { services.homebridge = { enable = true; openFirewall = true; + settings = { + port = { + start = accessoryStart; + end = accessoryEnd; + }; + }; }; # 50202 LG Subbridge networking.firewall.allowedTCPPorts = [ config.services.homebridge.settings.bridge.port 50202 ]; + networking.firewall.allowedTCPPortRanges = [ {from = accessoryStart; to = accessoryEnd;} ]; networking.firewall.allowedUDPPorts = [ 5353 ]; # mDNS / Bonjour