Use pkgs.quickshell directly

This commit is contained in:
Celes Renata
2025-12-12 14:09:52 -08:00
parent 70d3264307
commit c66b7169be
+2 -9
View File
@@ -7,15 +7,8 @@ let
cfg = config.programs.dots-hyprland.quickshell; cfg = config.programs.dots-hyprland.quickshell;
mainCfg = config.programs.dots-hyprland; mainCfg = config.programs.dots-hyprland;
# Use quickshell from home.packages (user must add it) # Use quickshell from pkgs (must be available in nixpkgs)
workingQuickshell = let workingQuickshell = pkgs.quickshell;
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 # Service startup script that handles initial setup
quickshellStartup = pkgs.writeShellScript "quickshell-startup" '' quickshellStartup = pkgs.writeShellScript "quickshell-startup" ''