Need Help Black screen with blinking cursor after installing Nvidia drivers

Hello i am very new to NixOS and trying to setup my system while trying to install Nvidia drivers by adding services.xserver.videoDrivers = ["nvidia"]; and other things followinig nix wiki to configuration.nix when i rebuild and switch it goes straight to Black screen with blinking cursor i tty and login to hyprland via tty i searched of what reason it could happen i saw few answers Picom clashing with nvidia drivers i use hyprland and other not having display manager i have sddm it was working find until i added my nvidia drivers but the thing is my nvidia driver is up and running with no problem need to test it with games but what help i am asking is how not to have the black screen every time i reboot its annoying and it feels i did something wrong
Any help would be Appreciated
GPU - RTX 3060 Mobile
Nvidia Drivers - 570.144 Stable

Try following the steps in wiki
https://wiki.nixos.org/wiki/Nvidia

GPU - RTX 3060 Mobile, according to doc, it is Ampere architecture, and open source kernel module is preferred.

Try this in configuration.nix first

{
  hardware.graphics.enable = true;
  services.xserver.videoDrivers = [ "nvidia" ];
  hardware.nvidia.open = true;  # see the note above
}
1 Like

Nope it did not work
My configuration.nix see if you can find any problems in here you think that might be affecting

OK when i set hardware.nvidia.prime.sync.enable = true; everything is working properly and sddm takes over the black screen but it takes few seconds , can anyone explain what might have caused this issue