From 7698856b559e9d6566d36cac3cce5aacbde951b2 Mon Sep 17 00:00:00 2001 From: Joshua Yuen Date: Tue, 29 Jul 2025 13:31:29 -0400 Subject: [PATCH] Use hyprland with UWSM instead of systemd --- modules/core/hyprland.nix | 1 + modules/home/hyprland/hyprland.nix | 9 +-------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/modules/core/hyprland.nix b/modules/core/hyprland.nix index 6a4fe3f..48b9f97 100644 --- a/modules/core/hyprland.nix +++ b/modules/core/hyprland.nix @@ -11,6 +11,7 @@ in config = mkIf cfg.enable { programs.hyprland = { enable = true; + withUWSM = true; }; }; } \ No newline at end of file diff --git a/modules/home/hyprland/hyprland.nix b/modules/home/hyprland/hyprland.nix index 828b439..940908a 100644 --- a/modules/home/hyprland/hyprland.nix +++ b/modules/home/hyprland/hyprland.nix @@ -11,17 +11,10 @@ let cfg = osConfig.modules.hyprland; in { - systemd.user.targets.hyprland-session.Unit.Wants = [ - "xdg-desktop-autostart.target" - ]; - wayland.windowManager.hyprland = { enable = cfg.enable; package = pkgs.hyprland; - systemd = { - enable = true; - enableXdgAutostart = true; - }; + systemd.enable = false; xwayland.enable = true; settings = { monitor = cfg.monitor;