From 70d3264307639f077c66595dc07f6cfd170e520c Mon Sep 17 00:00:00 2001 From: Celes Renata Date: Fri, 12 Dec 2025 14:08:37 -0800 Subject: [PATCH] Find quickshell from home.packages --- modules/components/quickshell-service.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/modules/components/quickshell-service.nix b/modules/components/quickshell-service.nix index 25dc7e7..69203e2 100644 --- a/modules/components/quickshell-service.nix +++ b/modules/components/quickshell-service.nix @@ -7,8 +7,15 @@ let cfg = config.programs.dots-hyprland.quickshell; mainCfg = config.programs.dots-hyprland; - # Use quickshell from nixpkgs (available in 25.11+) - workingQuickshell = pkgs.quickshell or (throw "quickshell not found in nixpkgs - ensure you're using nixpkgs 25.11 or later"); + # Use quickshell from home.packages (user must add it) + workingQuickshell = let + quickshellPkg = pkgs.lib.findFirst + (pkg: pkg.pname or "" == "quickshell") + null + config.home.packages; + in + if quickshellPkg != null then quickshellPkg + else pkgs.quickshell or (throw "quickshell not found - add pkgs.quickshell to home.packages"); # Service startup script that handles initial setup quickshellStartup = pkgs.writeShellScript "quickshell-startup" ''