Unverified Commit 7d43e37b authored by Sefa Eyeoglu's avatar Sefa Eyeoglu
Browse files

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: default avatarSefa Eyeoglu <contact@scrumplex.net>
parent 23664a73
Loading
Loading
Loading
Loading
+10 −9
Original line number Diff line number Diff line
@@ -108,12 +108,12 @@ 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 (
    services.displayManager = {
      enable = true;
      sessionPackages = lib.mapAttrsToList (
        name: value:
        mk_uwsm_desktop_entry {
          inherit name;
@@ -121,6 +121,7 @@ in
        }
      ) cfg.waylandCompositors;
    };
  };

  meta.maintainers = with lib.maintainers; [
    johnrtitor