diff options
author | Solene Rapenne <solene@perso.pw> | 2022-12-04 13:50:29 +0100 |
---|---|---|
committer | Solene Rapenne <solene@perso.pw> | 2022-12-05 12:03:02 +0100 |
commit | 535c434fa831cb5f6bc9018e4477589d8d5eea47 (patch) | |
tree | b8a09d04662bae8ef4f230412c9ac3b56574f911 /nixos/modules/services/audio | |
parent | dde81d652f21d9687a659943753956558333ea6b (diff) | |
download | nixlib-535c434fa831cb5f6bc9018e4477589d8d5eea47.tar nixlib-535c434fa831cb5f6bc9018e4477589d8d5eea47.tar.gz nixlib-535c434fa831cb5f6bc9018e4477589d8d5eea47.tar.bz2 nixlib-535c434fa831cb5f6bc9018e4477589d8d5eea47.tar.lz nixlib-535c434fa831cb5f6bc9018e4477589d8d5eea47.tar.xz nixlib-535c434fa831cb5f6bc9018e4477589d8d5eea47.tar.zst nixlib-535c434fa831cb5f6bc9018e4477589d8d5eea47.zip |
nixos/snapserver: openFirewall default to false
Diffstat (limited to 'nixos/modules/services/audio')
-rw-r--r-- | nixos/modules/services/audio/snapserver.nix | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/nixos/modules/services/audio/snapserver.nix b/nixos/modules/services/audio/snapserver.nix index fdc1f605bb32..2af42eeb3705 100644 --- a/nixos/modules/services/audio/snapserver.nix +++ b/nixos/modules/services/audio/snapserver.nix @@ -101,9 +101,7 @@ in { openFirewall = mkOption { type = types.bool; - # Make the behavior consistent with other services. Set the default to - # false and remove the accompanying warning after NixOS 22.05 is released. - default = true; + default = false; description = lib.mdDoc '' Whether to automatically open the specified ports in the firewall. ''; @@ -279,12 +277,7 @@ in { # https://github.com/badaix/snapcast/blob/98ac8b2fb7305084376607b59173ce4097c620d8/server/streamreader/stream_manager.cpp#L85 filter (w: w != "") (mapAttrsToList (k: v: if v.type == "spotify" then '' services.snapserver.streams.${k}.type = "spotify" is deprecated, use services.snapserver.streams.${k}.type = "librespot" instead. - '' else "") cfg.streams) - # Remove this warning after NixOS 22.05 is released. - ++ optional (options.services.snapserver.openFirewall.highestPrio >= (mkOptionDefault null).priority) '' - services.snapserver.openFirewall will no longer default to true starting with NixOS 22.11. - Enable it explicitly if you need to control Snapserver remotely. - ''; + '' else "") cfg.streams); systemd.services.snapserver = { after = [ "network.target" ]; |