From fbabb41a6433ce67c03338236cef18456c4c0bad Mon Sep 17 00:00:00 2001 From: Sean Krueger Date: Thu, 6 Jun 2024 20:50:22 -0500 Subject: [PATCH] Add xcb as fallback when wayland fails to load Mostly as a fallback for xserver. --- flake.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 9eda8e4ed..15d509610 100644 --- a/flake.nix +++ b/flake.nix @@ -36,9 +36,9 @@ pkgs.libpulseaudio pkgs.libkrb5 - qt6.qtwayland - qt6.full qt6.qtbase + qt6.full + qt6.qtwayland ]; buildInputs = with pkgs; [ @@ -88,7 +88,7 @@ postShellHook = '' unset SOURCE_DATE_EPOCH - export QT_QPA_PLATFORM=wayland + export QT_QPA_PLATFORM="wayland;xcb" export LIBRARY_PATH=/usr/lib:/usr/lib64:$LIBRARY_PATH # export LD_LIBRARY_PATH=${pkgs.stdenv.cc.cc.lib}/lib/:/run/opengl-driver/lib/ export QT_PLUGIN_PATH=${pkgs.qt6.qtbase}/${pkgs.qt6.qtbase.qtPluginPrefix}