Screen just shows cursor that blinks when I click after it goes to sleep

Sometimes when I come back to my computer after the screen has gone to sleep it just shows my mouse, but the screen stays black. When I click the mouse disappears then reappears, but I can’t get back to my desktop.

I can press ctrl + alt + F1 to get to a text only command line and ‘safely’ reboot my computer…but I lose all unsaved work, and I have to reboot unnecessarily. Wondering what the problem might be.

Maybe that has to do with my ‘windows manager’? or something. Fairly new to linux and have less than a year of nixos under my belt.

Hello
Pleas provide more infos like hardware specs and configuration.
Do you have a nvidia gpu?