Merge pull request #75489 from hedning/gdm-only-default-with-auto

nixos/gdm: only set session on auto login
This commit is contained in:
worldofpeace 2019-12-11 08:41:46 -05:00 committed by GitHub
commit d3a9b098d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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