Skip to content

Commit 2b75504

Browse files
committed
fix: use hyprland from flake instead of pkgs
1 parent c0c9ed2 commit 2b75504

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

home/linux/gui/hyprland/values/hyprland.nix

+5-3
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@
44
hyprland,
55
nur-ryan4yin,
66
...
7-
}: {
7+
}: let
8+
package = hyprland.packages.${pkgs.system}.hyprland;
9+
in {
810
# NOTE:
911
# We have to enable hyprland/i3's systemd user service in home-manager,
1012
# so that gammastep/wallpaper-switcher's user service can be start correctly!
1113
# they are all depending on hyprland/i3's user graphical-session
1214
wayland.windowManager.hyprland = {
15+
inherit package;
1316
enable = true;
1417
settings = {
1518
source = "${nur-ryan4yin.packages.${pkgs.system}.catppuccin-hyprland}/themes/mocha.conf";
@@ -25,7 +28,6 @@
2528
"GDK_BACKEND,wayland"
2629
];
2730
};
28-
package = hyprland.packages.${pkgs.system}.hyprland;
2931
extraConfig = builtins.readFile ../conf/hyprland.conf;
3032
# gammastep/wallpaper-switcher need this to be enabled.
3133
systemd.enable = true;
@@ -34,7 +36,7 @@
3436
# NOTE: this executable is used by greetd to start a wayland session when system boot up
3537
# with such a vendor-no-locking script, we can switch to another wayland compositor without modifying greetd's config in NixOS module
3638
home.file.".wayland-session" = {
37-
source = "${pkgs.hyprland}/bin/Hyprland";
39+
source = "${package}/bin/Hyprland";
3840
executable = true;
3941
};
4042

0 commit comments

Comments
 (0)