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,38 +11,32 @@ let
cfg = osConfig.modules.hyprland; cfg = osConfig.modules.hyprland;
in in
{ {
config = mkIf cfg.enable { systemd.user.targets.hyprland-session.Unit.Wants = [
home.packages = with pkgs; [ "xdg-desktop-autostart.target"
kitty ];
];
systemd.user.targets.hyprland-session.Unit.Wants = [ wayland.windowManager.hyprland = {
"xdg-desktop-autostart.target" enable = cfg.enable;
]; package = pkgs.hyprland;
systemd = {
wayland.windowManager.hyprland = {
enable = true; enable = true;
package = pkgs.hyprland; enableXdgAutostart = true;
systemd = { };
enable = true; xwayland.enable = true;
enableXdgAutostart = true; settings = {
general = {
"$modifier" = "SUPER";
}; };
xwayland.enable = true;
settings = {
general = {
"$modifier" = "SUPER";
};
env = [ env = [
"NIXOS_OZONE_WL, 1" "NIXOS_OZONE_WL, 1"
"XDG_CURRENT_DESKTOP, Hyprland" "XDG_CURRENT_DESKTOP, Hyprland"
"XDG_SESSION_DESKTOP, Hyprland" "XDG_SESSION_DESKTOP, Hyprland"
"XDG_SESSION_TYPE, wayland" "XDG_SESSION_TYPE, wayland"
]; ];
ecosystem = { ecosystem = {
no_update_news = true; no_update_news = true;
};
}; };
}; };
}; };