nixos/unifi: change deprecated default for openFirewall
this was deprecated 6 months ago in unstable for removal in 22.11, so now seems like a good point to change the default.
This commit is contained in:
@@ -51,7 +51,7 @@ in
|
|||||||
|
|
||||||
services.unifi.openFirewall = mkOption {
|
services.unifi.openFirewall = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = true;
|
default = false;
|
||||||
description = ''
|
description = ''
|
||||||
Whether or not to open the minimum required ports on the firewall.
|
Whether or not to open the minimum required ports on the firewall.
|
||||||
|
|
||||||
@@ -85,10 +85,6 @@ in
|
|||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
|
||||||
warnings = optional
|
|
||||||
(options.services.unifi.openFirewall.highestPrio >= (mkOptionDefault null).priority)
|
|
||||||
"The current services.unifi.openFirewall = true default is deprecated and will change to false in 22.11. Set it explicitly to silence this warning.";
|
|
||||||
|
|
||||||
users.users.unifi = {
|
users.users.unifi = {
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
group = "unifi";
|
group = "unifi";
|
||||||
|
|||||||
Reference in New Issue
Block a user