Fix overlay to properly import quickshell from nixpkgs

This commit is contained in:
Celes Renata
2025-12-12 13:30:31 -08:00
parent de96a23032
commit 059fc16d5a
+13 -5
View File
@@ -24,12 +24,19 @@
}; };
in in
{ {
overlays.default = final: prev: { overlays.default = final: prev:
# Use quickshell from nixpkgs (supports all architectures) let
quickshell-base = prev.quickshell; # Get quickshell from nixpkgs for the current system
pkgsForQuickshell = import nixpkgs {
system = final.system;
config.allowUnfree = true;
};
in {
# Use quickshell from nixpkgs (supports all architectures)
quickshell-base = pkgsForQuickshell.quickshell;
# Enhanced quickshell with Qt5Compat support for dots-hyprland # Enhanced quickshell with Qt5Compat support for dots-hyprland
quickshell = final.writeShellScriptBin "quickshell" '' quickshell = final.writeShellScriptBin "quickshell" ''
# Add Qt5Compat, QtPositioning, and quickshell config directories to QML import path # Add Qt5Compat, QtPositioning, and quickshell config directories to QML import path
export QML2_IMPORT_PATH="${final.kdePackages.qt5compat}/lib/qt-6/qml:${final.kdePackages.qtpositioning}/lib/qt-6/qml:${final.kdePackages.qtlocation}/lib/qt-6/qml:$HOME/.config/quickshell/ii:$HOME/.config/quickshell:$QML2_IMPORT_PATH" export QML2_IMPORT_PATH="${final.kdePackages.qt5compat}/lib/qt-6/qml:${final.kdePackages.qtpositioning}/lib/qt-6/qml:${final.kdePackages.qtlocation}/lib/qt-6/qml:$HOME/.config/quickshell/ii:$HOME/.config/quickshell:$QML2_IMPORT_PATH"
@@ -44,6 +51,7 @@
exec ${final.quickshell-base}/bin/qs "$@" exec ${final.quickshell-base}/bin/qs "$@"
''; '';
}; };
};
packages = forAllSystems (system: packages = forAllSystems (system:
let let