Files
zimbatm c6ea99f211
buildbot/nix-eval Build done. (2 warnings)
buildbot/nix-build gitea:clan/munix#checks.aarch64-linux.package-muvm Build done.
buildbot/nix-build gitea:clan/munix#checks.aarch64-linux.package-munix Build done.
buildbot/nix-build Build done.
munix: run audio apps silent instead of hanging when audio is disabled
With --no-pipewire the host PipeWire socket is not bridged, but the guest
still exposes pipewire-bridge (pipewire-0) and pipewire-pulse (pulse/native)
sockets. An app that opens one (e.g. mgba via SDL) blocks forever in audio
init waiting on a bridge that goes nowhere.

Gate the bridges on a credential: --no-pipewire now passes
`systemd.set_credential=munix.noaudio:1`, and the pipewire-bridge /
pipewire-pulse socket+service units carry `ConditionCredential=!munix.noaudio`,
so the sockets are absent and clients fail fast. Also default SDL to its null
sink (SDL_AUDIO_DRIVER=dummy, threaded through muvm-remote's PassEnvironment)
so audio apps run silent rather than probing the missing socket.

This makes audio.playback=false spaces usable for apps that expect audio.
2026-07-14 10:42:49 +00:00
..