Improve hyprland option handling

This commit is contained in:
Joshua Yuen 2025-07-26 03:34:37 -04:00
parent d794ba91d0
commit 4d3330d4f3
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;
in
{
config = mkIf cfg.enable {
home.packages = with pkgs; [
kitty
];
systemd.user.targets.hyprland-session.Unit.Wants = [
"xdg-desktop-autostart.target"
];
wayland.windowManager.hyprland = {
enable = true;
enable = cfg.enable;
package = pkgs.hyprland;
systemd = {
enable = true;
@ -45,5 +40,4 @@ in
};
};
};
};
}