Need help installing Nvidia drivers

Yep,i own an Nvidia Geforce GT 630.
How to install the drivers?

Have you seen Nvidia - NixOS Wiki?

Does that help or do you have any problems with it? Which?

I know that manual,but i don’t even know what to do… :smiley:
I’m pure noob at linux and Nix.
How to add the following to the /etc/nixos/configuration.nix?

services.xserver.videoDrivers = [ "nvidia" ];
hardware.opengl.driSupport32Bit = true;

You edit the file and put those lines into the attrset.

If this is your first experience with Linux, I’d highly recommend using more traditional Linux distros before diving into NixOS.
It assumes that you know how to edit config files and can understand a configuration DSL like Nix on your own and requires a high level of problem solving ability. It’s a great distro for us hackers but not a good one to get your feet wet with, at all.

I tryed to edit it,but can’t save the file.
It tells me ‘‘Permission denied’’.

You need to use sudo -e/sudoedit to edit the file.

Please refrain from the temptation to start your editor as root.


Hello! As of NixOS 22.11, there is a new option for nvidia drivers.
So, what is a correct way to setup nvidia driveres with wayland now?

+1. Also wondering this since Nvidia had release their open source kernel driver. The NixOS wiki doesn’t seem to be super up to date, especially for the new open source driver as well as Wayland.

Not much has changed. The basic setup remains just setting services.xserver.videoDrivers = [ "nvidia" ];, and if you’d like to use the open source drivers you can also set = true;.

The open drivers are currently in alpha state, so this is probably not a good idea for much more than curiosity.

These settings also apply to Wayland. The option names probably need to be updated one day, and I believe I recall some discussion on the topic, but they have not yet been changed.

So, this particular wiki page is still mostly up to date, though a small section pointing out the open source drivers exist may be appropriate (with a big caveat about usability), as well as a note that this also applies to Wayland.