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:
parent
23664a7358
commit
7d43e37b44
@ -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; [
|
||||
|
Loading…
Reference in New Issue
Block a user