audio-server: fix zeroconf tcp stream
This commit is contained in:
parent
db061ae1cb
commit
1cd74cd8d8
|
@ -14,7 +14,6 @@ in
|
||||||
boot.kernelPackages = lib.mkOverride 900 pkgs.linuxPackages-rt_latest;
|
boot.kernelPackages = lib.mkOverride 900 pkgs.linuxPackages-rt_latest;
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
etc."pipewire/pipewire.conf.d/audio-server.conf".text =
|
|
||||||
# _____ _______ ____ _____
|
# _____ _______ ____ _____
|
||||||
# / ____|__ __/ __ \| __ \
|
# / ____|__ __/ __ \| __ \
|
||||||
# | (___ | | | | | | |__) |
|
# | (___ | | | | | | |__) |
|
||||||
|
@ -25,16 +24,21 @@ in
|
||||||
# errors such as:
|
# errors such as:
|
||||||
# mod.zeroconf-publish: error id:47 seq:349 res:-2 (No such file or directory): enum params id:16 (Spa:Enum:ParamId:ProcessLatency) failed
|
# mod.zeroconf-publish: error id:47 seq:349 res:-2 (No such file or directory): enum params id:16 (Spa:Enum:ParamId:ProcessLatency) failed
|
||||||
# are harmless and can be ignored. You most likely want to restart your local avahi-daemon: sudo systemctl restart avahi-daemon
|
# are harmless and can be ignored. You most likely want to restart your local avahi-daemon: sudo systemctl restart avahi-daemon
|
||||||
builtins.toJSON {
|
etc = {
|
||||||
"context.exec" = let
|
"pipewire/pipewire.conf.d/audio-server.conf".text = builtins.toJSON {
|
||||||
path = "${pkgs.pulseaudio}/bin/pactl";
|
"context.modules" = [ {
|
||||||
in [ {
|
|
||||||
inherit path;
|
|
||||||
args = "load-module module-zeroconf-publish";
|
|
||||||
} {
|
|
||||||
# https://wiki.archlinux.org/title/PulseAudio/Examples#PulseAudio_over_network
|
# https://wiki.archlinux.org/title/PulseAudio/Examples#PulseAudio_over_network
|
||||||
inherit path;
|
name = "libpipewire-module-rtp-sap";
|
||||||
args = "load-module module-rtp-recv latency_msec=10 sap_address=0.0.0.0";
|
args = {
|
||||||
|
"sap.ip" = "0.0.0.0";
|
||||||
|
"sess.latency.msec" = 10;
|
||||||
|
};
|
||||||
|
} ];
|
||||||
|
};
|
||||||
|
"pipewire/pipewire-pulse.conf.d/audio-server.conf".text = builtins.toJSON {
|
||||||
|
"context.exec" = [ {
|
||||||
|
path = "${pkgs.pulseaudio}/bin/pactl";
|
||||||
|
args = "load-module module-zeroconf-publish";
|
||||||
} ];
|
} ];
|
||||||
"pulse.properties" = {
|
"pulse.properties" = {
|
||||||
"auth-ip-acl" = [
|
"auth-ip-acl" = [
|
||||||
|
@ -50,10 +54,11 @@ in
|
||||||
"server.address" = [
|
"server.address" = [
|
||||||
"unix:native"
|
"unix:native"
|
||||||
"tcp:4713"
|
"tcp:4713"
|
||||||
"udp:9875"
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
systemPackages = with pkgs; [
|
systemPackages = with pkgs; [
|
||||||
mpd
|
mpd
|
||||||
mpv
|
mpv
|
||||||
|
|
Loading…
Reference in New Issue
Block a user