nixos/pipewire: raopOpenFirewall option
RAOP requires UDP/6001-6002 for timing information, and won't work with apple devices if firewall is enabled.
This commit is contained in:
parent
75b594c64f
commit
eaf6b74366
1 changed files with 10 additions and 0 deletions
|
@ -95,6 +95,14 @@ in {
|
||||||
enable = mkEnableOption (lib.mdDoc "JACK audio emulation");
|
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 = {
|
pulse = {
|
||||||
enable = mkEnableOption (lib.mdDoc "PulseAudio server emulation");
|
enable = mkEnableOption (lib.mdDoc "PulseAudio server emulation");
|
||||||
};
|
};
|
||||||
|
@ -371,6 +379,8 @@ in {
|
||||||
environment.sessionVariables.LD_LIBRARY_PATH =
|
environment.sessionVariables.LD_LIBRARY_PATH =
|
||||||
lib.mkIf cfg.jack.enable [ "${cfg.package.jack}/lib" ];
|
lib.mkIf cfg.jack.enable [ "${cfg.package.jack}/lib" ];
|
||||||
|
|
||||||
|
networking.firewall.allowedUDPPorts = lib.mkIf cfg.raopOpenFirewall [ 6001 6002 ];
|
||||||
|
|
||||||
users = lib.mkIf cfg.systemWide {
|
users = lib.mkIf cfg.systemWide {
|
||||||
users.pipewire = {
|
users.pipewire = {
|
||||||
uid = config.ids.uids.pipewire;
|
uid = config.ids.uids.pipewire;
|
||||||
|
|
Loading…
Reference in a new issue