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>
This commit is contained in:
Sefa Eyeoglu 2024-10-27 12:19:14 +01:00
parent 23664a7358
commit 7d43e37b44
No known key found for this signature in database
GPG Key ID: E13DFD4B47127951

View File

@ -108,18 +108,19 @@ in
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; [