audio-server: cleanup

This commit is contained in:
Sandro - 2023-12-17 23:35:53 +01:00
parent 55ea228869
commit 1f49c2cf17
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 12 additions and 17 deletions

View File

@ -14,8 +14,7 @@ in
boot.kernelPackages = lib.mkOverride 900 pkgs.linuxPackages-rt_latest;
environment = {
etc."pipewire/pipewire.conf.d/audio-server.conf".text = let
pactl = "${pkgs.pulseaudio}/bin/pactl";
etc."pipewire/pipewire.conf.d/audio-server.conf".text =
# _____ _______ ____ _____
# / ____|__ __/ __ \| __ \
# | (___ | | | | | | |__) |
@ -26,21 +25,17 @@ in
# 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
# are harmless and can be ignored. You most likely want to restart your local avahi-daemon: sudo systemctl restart avahi-daemon
in builtins.toJSON {
"context.exec" = [
# should be loaded by "server.address" but that is either to late or razy on 23.05
{
"path" = pactl;
"args" = "load-module module-native-protocol-tcp";
} {
"path" = pactl;
# https://wiki.archlinux.org/title/PulseAudio/Examples#PulseAudio_over_network
"args" = "load-module module-rtp-recv latency_msec=10 sap_address=0.0.0.0";
} {
"path" = pactl;
"args" = "load-module module-zeroconf-publish";
}
];
builtins.toJSON {
"context.exec" = let
path = "${pkgs.pulseaudio}/bin/pactl";
in [ {
inherit path;
args = "load-module module-zeroconf-publish";
} {
# https://wiki.archlinux.org/title/PulseAudio/Examples#PulseAudio_over_network
inherit path;
args = "load-module module-rtp-recv latency_msec=10 sap_address=0.0.0.0";
} ];
"pulse.properties" = {
"auth-ip-acl" = [
"127.0.0.0/8"