This was the solution. I had some errors when I set open = true, but I just set it to false and it works.
I got many errors like this:
[ 24.393220] NVRM: The NVIDIA GPU 0000:01:00.0 (PCI ID: 10de:1380)
NVRM: installed in this system is not supported by open
NVRM: nvidia.ko because it does not include the required GPU
NVRM: System Processor (GSP).
NVRM: Please see the 'Open Linux Kernel Modules' and 'GSP
NVRM: Firmware' sections in the driver README, available on
NVRM: the Linux graphics driver download page at
NVRM: www.nvidia.com.
[ 24.403012] nvidia 0000:01:00.0: probe with driver nvidia failed with error -1