From 2c28028614522765f5e9f62655623e455bce19a2 Mon Sep 17 00:00:00 2001 From: diffy Date: Mon, 16 Feb 2026 02:12:30 +1000 Subject: [PATCH] nixos/uwsm: add desktop entries to displayManager again --- nixos/modules/programs/wayland/uwsm.nix | 27 ++++++++++++++----------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/nixos/modules/programs/wayland/uwsm.nix b/nixos/modules/programs/wayland/uwsm.nix index 6216ba2345a1..2ed6a643f39a 100644 --- a/nixos/modules/programs/wayland/uwsm.nix +++ b/nixos/modules/programs/wayland/uwsm.nix @@ -24,6 +24,19 @@ let passthru.providedSessions = [ "${opts.name}-uwsm" ]; }; }); + + desktopEntries = lib.mapAttrsToList ( + name: value: + mk_uwsm_desktop_entry { + inherit name; + inherit (value) + prettyName + comment + binPath + extraArgs + ; + } + ) cfg.waylandCompositors; in { options.programs.uwsm = { @@ -126,18 +139,8 @@ in } (lib.mkIf (cfg.waylandCompositors != { }) { - environment.systemPackages = lib.mapAttrsToList ( - name: value: - mk_uwsm_desktop_entry { - inherit name; - inherit (value) - prettyName - comment - binPath - extraArgs - ; - } - ) cfg.waylandCompositors; + environment.systemPackages = desktopEntries; + services.displayManager.sessionPackages = desktopEntries; }) ] );