Skip to content

Proposal: Change the default display manager #12516

@ericsagnes

Description

@ericsagnes

NixOS version: 15.09.919.b3bba00 (Dingo)


SLiM has a few issues that make it a suboptimal choice for being the default display manager.

User-unfriendly behavior

if a user wants to enable Xfce, he could think that adding the following to configuration.nix is enough as mentioned in the manual:

  services.xserver.desktopManager.xfce.enable = true;

But SLiM will propose a Xterm session by default.

To start Xfce, the user can:

  • push F1 to change to almost invisible "session: xterm" to "session:xfce", not documented on the github mirror (and the official site is down).
  • disable xterm so SLiM sees only the xfce session
  services.xserver.desktopManager.xfce.enable = true;
  services.xserver.desktopManager.xterm.enable = false;

It is abandoned

The official homepage is down, its development is abandonned since 2013, there is no available documentation and it is not fully compatible with systemd.


Proposition

Change NixOS default display manager to something else.

  • It should be lightweight, user-friendly and up to date.
  • Users desiring to still use SLiM could enable it in configuration.nix.

Also, a mention in services.xserver.displayManager.slim.enable should be added to explain to set services.xserver.desktopManager.xterm.enable = false; if SLiM is not starting the desired desktop manager by default.

Candidates

It is hard to find lightweight, user-friendly and up to date DM, and none of the following candidates feels like a perfect replacement for SLiM (specially regarding being lightweight and the dependencies).
But they sure bring advantages that are worth to considering.
The following list is not definitive and if better alternatives exists they should be considered.

LightDM

homepage

  • Cross-desktop - supports different desktop technologies.
  • Supports different display technologies (X, Mir, ...).
  • Lightweight - low memory usage and fast performance.
  • Guest sessions.
  • Supports remote login (incoming - XDMCP, VNC, outgoing - XDMCP, pluggable).
  • Comprehensive test suite.
  • Low code complexity.

Cons:

  • The default greeter we have in nix, lightdm-gtk-greeter, has GTK dependencies.
  • There are no greeter as lightweight as slim at the moment.

SDDM

homepage

SDDM is a modern display manager for X11 and Wayland aiming to be fast, simple and beautiful. It uses modern technologies like QtQuick, which in turn gives the designer the ability to create smooth, animated user interfaces.

Pros:

  • support X11 and wayland
  • seems easier to customize than LightDM

Cons:

  • has Qt dependencies

This kind of proposition can easily turn into a debate about personal preferences.
I hope the goal of this proposition, that is improving usability and being nice with first time NixOS users, is clear enough that we can avoid that.


related issue: #4300


updates:

  • fixed desktop manager / display manager inversions
  • fixed lightdm homepage broken link

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: enhancementAdd something new6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions