diff options
author | Cabia Rangris <cab@cab.moe> | 2024-03-20 18:18:29 +0300 |
---|---|---|
committer | Cabia Rangris <cab@cab.moe> | 2024-03-20 18:32:01 +0300 |
commit | eaf6b743667823d1ccc2fcd27f7daf4e0a80a8a5 (patch) | |
tree | 74ddb3a220b8294f78a9a19e5eb461278212af73 | |
parent | 75b594c64f5dc6321b3225b50646361c2dd1a985 (diff) | |
download | nixlib-eaf6b743667823d1ccc2fcd27f7daf4e0a80a8a5.tar nixlib-eaf6b743667823d1ccc2fcd27f7daf4e0a80a8a5.tar.gz nixlib-eaf6b743667823d1ccc2fcd27f7daf4e0a80a8a5.tar.bz2 nixlib-eaf6b743667823d1ccc2fcd27f7daf4e0a80a8a5.tar.lz nixlib-eaf6b743667823d1ccc2fcd27f7daf4e0a80a8a5.tar.xz nixlib-eaf6b743667823d1ccc2fcd27f7daf4e0a80a8a5.tar.zst nixlib-eaf6b743667823d1ccc2fcd27f7daf4e0a80a8a5.zip |
nixos/pipewire: raopOpenFirewall option
RAOP requires UDP/6001-6002 for timing information, and won't work with apple devices if firewall is enabled.
-rw-r--r-- | nixos/modules/services/desktops/pipewire/pipewire.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/nixos/modules/services/desktops/pipewire/pipewire.nix b/nixos/modules/services/desktops/pipewire/pipewire.nix index 09448833620c..182615cd4d6c 100644 --- a/nixos/modules/services/desktops/pipewire/pipewire.nix +++ b/nixos/modules/services/desktops/pipewire/pipewire.nix @@ -95,6 +95,14 @@ in { enable = mkEnableOption (lib.mdDoc "JACK audio emulation"); }; + raopOpenFirewall = mkOption { + type = lib.types.bool; + default = false; + description = lib.mdDoc '' + Opens UDP/6001-6002, required by RAOP/Airplay for timing and control data. + ''; + }; + pulse = { enable = mkEnableOption (lib.mdDoc "PulseAudio server emulation"); }; @@ -371,6 +379,8 @@ in { environment.sessionVariables.LD_LIBRARY_PATH = lib.mkIf cfg.jack.enable [ "${cfg.package.jack}/lib" ]; + networking.firewall.allowedUDPPorts = lib.mkIf cfg.raopOpenFirewall [ 6001 6002 ]; + users = lib.mkIf cfg.systemWide { users.pipewire = { uid = config.ids.uids.pipewire; |