From 059fc16d5a4a1fcb896036010b2d16a2e84a57db Mon Sep 17 00:00:00 2001 From: Celes Renata Date: Fri, 12 Dec 2025 13:30:31 -0800 Subject: [PATCH] Fix overlay to properly import quickshell from nixpkgs --- flake.nix | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index dfed224..9118e9d 100644 --- a/flake.nix +++ b/flake.nix @@ -24,12 +24,19 @@ }; in { - overlays.default = final: prev: { - # Use quickshell from nixpkgs (supports all architectures) - quickshell-base = prev.quickshell; + overlays.default = final: prev: + let + # 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 - quickshell = final.writeShellScriptBin "quickshell" '' + # Enhanced quickshell with Qt5Compat support for dots-hyprland + quickshell = final.writeShellScriptBin "quickshell" '' # 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" @@ -44,6 +51,7 @@ exec ${final.quickshell-base}/bin/qs "$@" ''; }; + }; packages = forAllSystems (system: let