nixos/display-managers: update set-session for new "SessionType" property

GDM 40.1 switched from storing X11 sessions in the "XSession" property
on AccountService to "Session" with a "x11" "SessionType".

For compatibility reasons, we should set both, since AccountService
doesn't seem to provide the compatibility for us.

+3
+3
nixos/modules/services/x11/display-managers/set-session.py
··· 72 72 f"Setting session name: {session}, as we found the existing wayland-session: {session_file}" 73 73 ) 74 74 user.set_session(session) 75 + user.set_session_type("wayland") 75 76 elif is_session_xsession(session_file): 76 77 logging.debug( 77 78 f"Setting session name: {session}, as we found the existing xsession: {session_file}" 78 79 ) 79 80 user.set_x_session(session) 81 + user.set_session(session) 82 + user.set_session_type("x11") 80 83 else: 81 84 logging.error(f"Couldn't figure out session type for {session_file}") 82 85 sys.exit(1)