From 33e2e327b509909658721a8ab7bd158b6d45f0d3 Mon Sep 17 00:00:00 2001 From: DannyDannyDanny Date: Tue, 31 Mar 2026 10:01:22 +0200 Subject: [PATCH] fix(nixos): increase UxPlay ALSA buffer to reduce audio chop :bug: WiFi jitter causes underruns with default buffer. Set buffer-time to 200ms for smoother playback. --- nixos/hosts/sunken-ship.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/hosts/sunken-ship.nix b/nixos/hosts/sunken-ship.nix index c53296a..4b90677 100644 --- a/nixos/hosts/sunken-ship.nix +++ b/nixos/hosts/sunken-ship.nix @@ -87,7 +87,7 @@ in wants = [ "network-online.target" "avahi-daemon.service" ]; wantedBy = [ "multi-user.target" ]; serviceConfig = { - ExecStart = ''${pkgs.uxplay}/bin/uxplay -n sunken-ship -p -vs 0 -as "alsasink device=plughw:USB,0"''; + ExecStart = ''${pkgs.uxplay}/bin/uxplay -n sunken-ship -p -vs 0 -as "alsasink device=plughw:USB,0 buffer-time=200000"''; Restart = "on-failure"; RestartSec = 5; User = "danny";