@@ -50,7 +50,7 @@ in
5050 '';
5151 };
5252
53− services.unifi.openPorts = mkOption {
53+ services.unifi.openFirewall = mkOption {
5454 type = types.bool;
5555 default = true;
5656 description = ''
@@ -87,8 +87,8 @@ in
8787 config = mkIf cfg.enable {
8888
8989 warnings = optional
90− (options.services.unifi.openPorts.highestPrio >= (mkOptionDefault null).priority)
91− "The current services.unifi.openPorts = true default is deprecated and will change to false in 22.11. Set it explicitly to silence this warning.";
90+ (options.services.unifi.openFirewall.highestPrio >= (mkOptionDefault null).priority)
91+ "The current services.unifi.openFirewall = true default is deprecated and will change to false in 22.11. Set it explicitly to silence this warning.";
9292
9393 users.users.unifi = {
9494 isSystemUser = true;
@@ -98,7 +98,7 @@ in
9898 };
9999 users.groups.unifi = {};
100100
101− networking.firewall = mkIf cfg.openPorts {
101+ networking.firewall = mkIf cfg.openFirewall {
102102 # https://help.ubnt.com/hc/en-us/articles/218506997
103103 allowedTCPPorts = [
104104 8080 # Port for UAP to inform controller.
@@ -196,6 +196,7 @@ in
196196 };
197197 imports = [
198198 (mkRemovedOptionModule [ "services" "unifi" "dataDir" ] "You should move contents of dataDir to /var/lib/unifi/data" )
199+ (mkRenamedOptionModule [ "services" "unifi" "openPorts" ] [ "services" "unifi" "openFirewall" ])
199200 ];
200201
201202 meta.maintainers = with lib.maintainers; [ erictapen pennae ];