From 5f15f5ed78dc508c5dd30b0006c7cfa915527ed8 Mon Sep 17 00:00:00 2001 From: Celes Renata Date: Sat, 9 Aug 2025 23:39:33 -0700 Subject: [PATCH] Fix quickshell wrapper using symlinkJoin - Use symlinkJoin with wrapProgram for proper binary wrapping - This ensures the qs binary gets the QML2_IMPORT_PATH set correctly - Should resolve the Qt5Compat.GraphicalEffects import issue permanently --- flake.nix | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index c30d37c..6aefcf5 100644 --- a/flake.nix +++ b/flake.nix @@ -24,10 +24,15 @@ { overlays.default = final: prev: { # Enhanced quickshell with Qt5Compat support for dots-hyprland - quickshell = final.writeShellScriptBin "qs" '' - export QML2_IMPORT_PATH="${final.qt6.qt5compat}/lib/qt-6/qml:$QML2_IMPORT_PATH" - exec ${quickshell.packages.${system}.default}/bin/qs "$@" - ''; + quickshell = final.symlinkJoin { + name = "quickshell-with-qt5compat"; + paths = [ quickshell.packages.${system}.default ]; + buildInputs = [ final.makeWrapper ]; + postBuild = '' + wrapProgram $out/bin/qs \ + --prefix QML2_IMPORT_PATH : "${final.qt6.qt5compat}/lib/qt-6/qml" + ''; + }; }; packages.${system} = utilityPackages // {