Skip to content

Commit 1982850

Browse files
committed
fix(waybar): guard osConfig hyprland package access
The hyprctl fallback dereferenced osConfig.programs.hyprland.package unconditionally, which throws on standalone Home Manager (osConfig defaults to {}) when HM's hyprland package is null. Fall back to pkgs.hyprland via an or-default, matching the uwsm guard pattern already used in this file.
1 parent 709a9e4 commit 1982850

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/home/programs/graphical/bars/waybar/modules/hyprland-modules.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ let
1111
if config.wayland.windowManager.hyprland.package != null then
1212
config.wayland.windowManager.hyprland.package
1313
else
14-
osConfig.programs.hyprland.package;
14+
osConfig.programs.hyprland.package or pkgs.hyprland;
1515
hyprctl = getExe' hyprlandPackage "hyprctl";
1616
procps = getExe' pkgs.procps "pidof";
1717
in

0 commit comments

Comments
 (0)