Error when trying to install the nvidia drivers

Hello i am having problems installing my nvidia drivers and i get greeted by the following error.

Any help or advice would be really helpful.

Blockquote
error: builder for ‘/nix/store/rls0kaxk23ql2aq71sx2m8x0nf30q58j-nvidia-x11-545.29.02-6.7.3.drv’ failed with exit code 2
error: 1 dependencies of derivation ‘/nix/store/zjya1k3nlmp8hazkly6gafki26arldpk-etc.drv’ failed to build
error: 1 dependencies of derivation ‘/nix/store/64bklwyazrm807c5vr20j6g0rz8sd542-linux-6.7.3-modules.drv’ failed to build
error: 1 dependencies of derivation ‘/nix/store/qzg6axcn3vl1w939iiqyk5jmw638s9qv-system-path.drv’ failed to build
error: 1 dependencies of derivation ‘/nix/store/4chyjrngbwwqkkz44z0gaz422s0z3hrs-nixos-system-nixos-23.11.3920.25e3d4c0d359.drv’ failed to build

I am having the same problem. Everything was working fine until I did a rebuild (I wanted to try out Flakes). The rebuild failed, and I was presented a similar message for nvidia-x11-545.29.02-6.1.76.drv.

By the way, I did not manage to pipe the result of nixos-rebuild to a file. I tried with … > output.log and … | tee output.log. It did not work. How can one pipe the output to a file?

And then I saw this post as well:

On this page you can check when the fix will be ready.

1 Like