Autologin without display managers?

I want to see if I can have an auto login without any display managers in my nix configuration. This is what I have right now. It shows the tty output while loading Hyprland with uwsm, but not without it (changing hyprland-uwsm.desktop to Hyprland).

          services = {
            getty.autologinUser = "username";
            xserver = {
              videoDrivers = [ "nvidia" ];
              enable = true;
              displayManager.startx.enable = true;
            };
      };
    
      programs.bash.shellInit = ''
        uwsm start hyprland-uwsm.desktop
      '';