nixos/gdm: do not force the session

Having a default session resulted in GDM not remembering the last used
session.

So do not force the session until setSessionScript is made aware of the
last session used.
This commit is contained in:
Tor Hedin Brønner 2019-12-11 04:17:59 +01:00
parent 8ecb7203f9
commit d04157fb98

View File

@ -204,9 +204,12 @@ in
cat - > /run/gdm/.config/gnome-initial-setup-done <<- EOF
yes
EOF
'' + optionalString hasDefaultUserSession ''
${setSessionScript}/bin/set-session ${defaultSessionName}
'';
''
# TODO: Make setSessionScript aware of previously used sessions
# + optionalString hasDefaultUserSession ''
# ${setSessionScript}/bin/set-session ${defaultSessionName}
# ''
;
};
# Because sd_login_monitor_new requires /run/systemd/machines