I’m trying to use NixOS (18.09 or 19.03pre) for CUDA development, and need an nvidia driver newer than 390. Yet when I install nvidia, even though the nix expression clearly says that x64 platforms get the 410 version, my system (which is 64 bit) stubbornly installs version 390. What am I doing wrong? How do I customize this to get some other version, such as 396 or 410?
Its exactly the config you get when you do nixos-generate-config and add “nvidia” to the xorg.videoDrivers list. I’ll try again, see if the problem still exists with the current unstable installer, and paste the config, later today.
Seems likely – which version do you get if you install using the 19.03pre installer? Alternatively, is doing nix-channel --add https://nixos.org/channels/nixos-unstalbe nixos and doing a nixos-rebuild switch --upgrade enough? How do I check which version of nixpkgs I’m using, as I agree that using the wrong version of nixpkgs seems the most likely cause…
Thanks! I think that was the problem. One related thing – is there a way to sub in a new sha256/URL and use a different version? I feel like overlays might be the answer I am looking for, but I’m hoping someone has a pointer to an example used on some other package…
did you ever figure out how to pick a particular nvidia driver? I’m having the same issue and don’t know how to switch to the newer nvidia driver so I can do CUDA development.
Thanks, that was exactly what I needed! I’m still not super comfortable with the nix language syntax, so it took some fiddling before I could import the unstable channel properly.