From 9fdb2e2f4b2129f586128226cd20a5fbdac15d21 Mon Sep 17 00:00:00 2001 From: Antoine Viallon Date: Sat, 25 May 2024 13:44:09 +0200 Subject: [PATCH] [Desktop/General] add x11 fallback to SDL + set audiodriver hint Tell SDL to use PipeWire first if it can --- desktop/general.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/desktop/general.nix b/desktop/general.nix index 6192dd8..33cf33b 100644 --- a/desktop/general.nix +++ b/desktop/general.nix @@ -159,7 +159,9 @@ in { ]; environment.variables = { - SDL_VIDEODRIVER = "wayland"; + SDL_VIDEODRIVER = "wayland,x11"; + SDL_AUDIODRIVER = "pipewire,pulseaudio"; + QT_QPA_PLATFORM = "wayland;xcb"; MOZ_DBUS_REMOTE = "1"; # For shared clipboard with Xwayland apps _JAVA_AWT_WM_NONREPARENTING = "1";