Use hyprland with UWSM instead of systemd

This commit is contained in:
Joshua Yuen 2025-07-29 13:31:29 -04:00
parent 82a38d37d7
commit 4c01ba7931
Signed by: josh
GPG Key ID: 502720BC22ED411C
2 changed files with 2 additions and 8 deletions

View File

@ -11,6 +11,7 @@ in
config = mkIf cfg.enable { config = mkIf cfg.enable {
programs.hyprland = { programs.hyprland = {
enable = true; enable = true;
withUWSM = true;
}; };
}; };
} }

View File

@ -11,17 +11,10 @@ let
cfg = osConfig.modules.hyprland; cfg = osConfig.modules.hyprland;
in in
{ {
systemd.user.targets.hyprland-session.Unit.Wants = [
"xdg-desktop-autostart.target"
];
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = cfg.enable; enable = cfg.enable;
package = pkgs.hyprland; package = pkgs.hyprland;
systemd = { systemd.enable = false;
enable = true;
enableXdgAutostart = true;
};
xwayland.enable = true; xwayland.enable = true;
settings = { settings = {
monitor = cfg.monitor; monitor = cfg.monitor;