diff --git a/nixos/modules/programs/wayland/hyprland.nix b/nixos/modules/programs/wayland/hyprland.nix index ae9d224778c2..59ca38e173a4 100644 --- a/nixos/modules/programs/wayland/hyprland.nix +++ b/nixos/modules/programs/wayland/hyprland.nix @@ -89,6 +89,9 @@ in configPackages = lib.mkDefault [ cfg.package ]; }; + # To make the Hyprland session available in DM + services.displayManager.sessionPackages = [ cfg.package ]; + systemd = lib.mkIf cfg.systemd.setPath.enable { user.extraConfig = '' DefaultEnvironment="PATH=/run/wrappers/bin:/etc/profiles/per-user/%u/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:$PATH" @@ -98,18 +101,6 @@ in (lib.mkIf (cfg.withUWSM) { programs.uwsm.enable = true; - # Configure UWSM to launch Hyprland from a display manager like SDDM - programs.uwsm.waylandCompositors = { - hyprland = { - prettyName = "Hyprland"; - comment = "Hyprland compositor managed by UWSM"; - binPath = "/run/current-system/sw/bin/start-hyprland"; - }; - }; - }) - (lib.mkIf (!cfg.withUWSM) { - # To make a vanilla Hyprland session available in DM - services.displayManager.sessionPackages = [ cfg.package ]; }) (import ./wayland-session.nix {