On NixOS, autologin bypasses cosmic-greeter and instead launches start-cosmic directly. The XDG_SESSION_DESKTOP variable previously wasn't set hence, which would break functionality like session commands ("Power Off") in the launcher.