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 f"Setting session name: {session}, as we found the existing wayland-session: {session_file}" 73 ) 74 user.set_session(session) 75 elif is_session_xsession(session_file): 76 logging.debug( 77 f"Setting session name: {session}, as we found the existing xsession: {session_file}" 78 ) 79 user.set_x_session(session) 80 else: 81 logging.error(f"Couldn't figure out session type for {session_file}") 82 sys.exit(1)
··· 72 f"Setting session name: {session}, as we found the existing wayland-session: {session_file}" 73 ) 74 user.set_session(session) 75 + user.set_session_type("wayland") 76 elif is_session_xsession(session_file): 77 logging.debug( 78 f"Setting session name: {session}, as we found the existing xsession: {session_file}" 79 ) 80 user.set_x_session(session) 81 + user.set_session(session) 82 + user.set_session_type("x11") 83 else: 84 logging.error(f"Couldn't figure out session type for {session_file}") 85 sys.exit(1)