diff options
author | Roland Synnestvedt <contact@rsynnest.com> | 2022-03-28 09:20:53 -0700 |
---|---|---|
committer | Roland Synnestvedt <contact@rsynnest.com> | 2022-03-28 19:55:50 -0700 |
commit | 33b04f2a80aa6a4556a0cbc102f82c2b8d788fe0 (patch) | |
tree | dd534e44737f8c52d3d71edcc8b268d8d1237815 /nixos | |
parent | 60e62c36df25e882d73881a627b8cd6816340bee (diff) |
nixos/unifi-video: add deprecation warning for openFirewall
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/doc/manual/from_md/release-notes/rl-2205.section.xml | 9 | ||||
-rw-r--r-- | nixos/doc/manual/release-notes/rl-2205.section.md | 3 | ||||
-rw-r--r-- | nixos/modules/services/video/unifi-video.nix | 4 |
3 files changed, 16 insertions, 0 deletions
diff --git a/nixos/doc/manual/from_md/release-notes/rl-2205.section.xml b/nixos/doc/manual/from_md/release-notes/rl-2205.section.xml index 66f2ac7ae261d..bc37478ddbbce 100644 --- a/nixos/doc/manual/from_md/release-notes/rl-2205.section.xml +++ b/nixos/doc/manual/from_md/release-notes/rl-2205.section.xml @@ -1212,6 +1212,15 @@ </listitem> <listitem> <para> + The <literal>services.unifi-video.openPorts</literal> option + default value of <literal>true</literal> is now deprecated and + will be changed to <literal>false</literal> in 22.11. + Configurations using this default will print a warning when + rebuilt. + </para> + </listitem> + <listitem> + <para> <literal>security.acme</literal> certificates will now correctly check for CA revokation before reaching their minimum age. diff --git a/nixos/doc/manual/release-notes/rl-2205.section.md b/nixos/doc/manual/release-notes/rl-2205.section.md index 018939939557e..288f6c045f5db 100644 --- a/nixos/doc/manual/release-notes/rl-2205.section.md +++ b/nixos/doc/manual/release-notes/rl-2205.section.md @@ -454,6 +454,9 @@ In addition to numerous new and upgraded packages, this release has the followin - The `services.unifi.openPorts` option default value of `true` is now deprecated and will be changed to `false` in 22.11. Configurations using this default will print a warning when rebuilt. +- The `services.unifi-video.openPorts` option default value of `true` is now deprecated and will be changed to `false` in 22.11. + Configurations using this default will print a warning when rebuilt. + - `security.acme` certificates will now correctly check for CA revokation before reaching their minimum age. diff --git a/nixos/modules/services/video/unifi-video.nix b/nixos/modules/services/video/unifi-video.nix index 7456736c8b21b..11d9fe305470c 100644 --- a/nixos/modules/services/video/unifi-video.nix +++ b/nixos/modules/services/video/unifi-video.nix @@ -174,6 +174,10 @@ in config = mkIf cfg.enable { + warnings = optional + (options.services.unifi-video.openFirewall.highestPrio >= (mkOptionDefault null).priority) + "The current services.unifi-video.openFirewall = true default is deprecated and will change to false in 22.11. Set it explicitly to silence this warning."; + users.users.unifi-video = { description = "UniFi Video controller daemon user"; home = stateDir; |