From 37e44b9a3d0e1dab408f8aa56742fc47661011df Mon Sep 17 00:00:00 2001 From: naps62 Date: Mon, 17 Aug 2026 08:51:55 +0000 Subject: [PATCH] fix: sunshine capture value is wlr, not wlgrab MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit wlgrab is the name the backend logs under, not a valid config value. Sunshine rejects it, then starts anyway with no encoder — moonlight sees a 503. Co-Authored-By: Claude Opus 5 --- hosts/common/features/remote-desktop.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hosts/common/features/remote-desktop.nix b/hosts/common/features/remote-desktop.nix index b3ae751..f92e0f3 100644 --- a/hosts/common/features/remote-desktop.nix +++ b/hosts/common/features/remote-desktop.nix @@ -16,7 +16,12 @@ _: # xdg-desktop-portal-hyprland implements no RemoteDesktop interface — the # probe then hangs forever instead of falling back, so sunshine never # binds its ports and the unit sits "active" doing nothing. - capture = "wlgrab"; + # + # "wlr", not "wlgrab": wlgrab is the name this backend logs under, but it + # is not accepted as a value — sunshine rejects it with "Unable to + # initialize capture method", then still starts and binds its ports with + # no encoder, so the failure only shows up as a 503 in moonlight. + capture = "wlr"; # The web UI is only reachable over the network here — there is no local # browser — and sunshine CSRF-rejects any origin but localhost unless it