Improve hyprland option handling

This commit is contained in:
Joshua Yuen 2025-07-26 03:34:37 -04:00
parent 82419f9b62
commit 2b7d136b87
Signed by: josh
GPG Key ID: 502720BC22ED411C
1 changed files with 21 additions and 27 deletions

View File

@ -11,17 +11,12 @@ let
cfg = osConfig.modules.hyprland; cfg = osConfig.modules.hyprland;
in in
{ {
config = mkIf cfg.enable {
home.packages = with pkgs; [
kitty
];
systemd.user.targets.hyprland-session.Unit.Wants = [ systemd.user.targets.hyprland-session.Unit.Wants = [
"xdg-desktop-autostart.target" "xdg-desktop-autostart.target"
]; ];
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = cfg.enable;
package = pkgs.hyprland; package = pkgs.hyprland;
systemd = { systemd = {
enable = true; enable = true;
@ -45,5 +40,4 @@ in
}; };
}; };
}; };
};
} }