2017-06-19 13:57:48 UTC
if I chose gdm as display-manger in NixOS, gdm fails to show a
login-screen. Is this a known bug and is there a solution or
Chosing slim or lightdm as display-manager works (but slim is *really*
user-unfriendly when using different sessions/windowmanagers, since
it shows the selected session as white text on nearly-white background
and does not tell you how to select which session to use).
services.xserver.displayManager.gdm.enable = true;
# nixos-rebuild switch
# systemctl restart display-manager.service
- Afterwards, nothing seems to happen; tty1..tty6 all show a text-login-
prompt. gdm is running, but no X11/login-screen is shown.
- # systemctl status display-manager.service
display-manager.service - X11 Server
Loaded: loaded (/nix/store/vpyvxzznl4b7s2sbfgz7daaw0jmj0hb3-unit-display-manager.service/display-manager.service; linked; vendor preset: enabled)
Active: active (running) since Mon 2017-06-19 15:49:30 CEST; 1min 45s ago
Process: 22160 ExecStartPre=/nix/store/k3ahl02n8pw0cpa4dahmi25jwfzrga7v-unit-script/bin/display-manager-pre-start (code=exited, status=0/SUCCESS)
Main PID: 22163 (gdm)
Tasks: 6 (limit: 4915)
└─22168 gdm-session-worker [pam/gdm-launch-environment]
Jun 19 15:49:30 rala systemd: Stopped X11 Server.
Jun 19 15:49:30 rala systemd: Starting X11 Server...
Jun 19 15:49:30 rala systemd: Started X11 Server.
Jun 19 15:49:30 rala gdm: Failed to list cached users: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Accounts was not provided by any .service files
- ps x | grep gdm
22163 ? Ssl 0:00 /nix/store/nq1wc8kbl7r68d7kq5yh8giwv5h8r86s-gdm-3.22.0/bin/gdm
22168 ? Sl 0:00 gdm-session-worker [pam/gdm-launch-environment]