I have a similar issue. I tried converting to using Flakes, and in the build process I was met with the same problem.
Since it was my first Flake build, I have nothing to convert back to. How can I do the initial build? Will I somehow have to build using an older Linux kernel? Or, is it the NVIDIA driver that I need to somehow downgrade? Or both?
// disclaimer: i am brand new to nixos