nixos/uwsm: enable display manager by default

UWSM is not usable if wayland-sessions are not linked. So
`services.displayManager.enable` should be true if UWSM is used.

`services.graphical-desktop.enable` is implied by
`services.displayManager.enable`.

See nixos/modules/services/misc/graphical-desktop.nix

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>

Changed files
+10 -9
nixos
modules
programs
wayland
+10 -9
nixos/modules/programs/wayland/uwsm.nix
···
systemd.packages = [ cfg.package ];
environment.pathsToLink = [ "/share/uwsm" ];
-
services.graphical-desktop.enable = true;
-
# UWSM recommends dbus broker for better compatibility
services.dbus.implementation = "broker";
-
services.displayManager.sessionPackages = lib.mapAttrsToList (
-
name: value:
-
mk_uwsm_desktop_entry {
-
inherit name;
-
inherit (value) prettyName comment binPath;
-
}
-
) cfg.waylandCompositors;
+
services.displayManager = {
+
enable = true;
+
sessionPackages = lib.mapAttrsToList (
+
name: value:
+
mk_uwsm_desktop_entry {
+
inherit name;
+
inherit (value) prettyName comment binPath;
+
}
+
) cfg.waylandCompositors;
+
};
};
meta.maintainers = with lib.maintainers; [