Screen and IO freezing after switching from 24.11 to 25.05 on Nvidia hardware

Sounds like a bug of some description. The nixpkgs package for nvidia is perpetually a lil’ behind, because stability guarantees. Maybe give manually updating a shot, at least until the next NixOS release:

hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.mkDriver {
  version = "580.76.05";

  # Update these hashes to whatever nix tells you to,
  # and set them back to `lib.fakeHash` every time you
  # change the version.
  sha256_64bit = lib.fakeHash;
  openSha256 = lib.fakeHash;
  settingsSha256 = lib.fakeHash;

  # You can leave these unspecified
  sha256_aarch64 = lib.fakeHash;
  persistencedSha256 = lib.fakeHash;
};