From 5120c6ac5a5c0c1b0b0a8f2214fcaafc9bf51b67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 26 May 2023 19:31:45 +0200 Subject: [PATCH] audio-server: fix race condition in zeroconf publishing --- modules/audio-server.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/modules/audio-server.nix b/modules/audio-server.nix index 3f163fd1..24d154ff 100644 --- a/modules/audio-server.nix +++ b/modules/audio-server.nix @@ -11,10 +11,16 @@ let # 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 - pipewireCfg = contextExec: { + pipewireCfg = contextExec: let + pactl = "${pkgs.pulseaudio}/bin/pactl"; + in { "context.exec" = contextExec ++ [ + # should be loaded by "server.address" but that is either to late or razy on 23.05 { - "path" = "pactl"; + "path" = pactl; + "args" = "load-module module-native-protocol-tcp"; + } { + "path" = pactl; "args" = "load-module module-zeroconf-publish"; } ];