Nvidia: Difference between revisions
Artoria2e5 (talk | contribs) No edit summary |
Artoria2e5 (talk | contribs) →Installing Nvidia drivers on NixOS: What is this AI yapping? "Distributions" when we are talking about just ours? Whoever wrote this, I challenge you to a duel. |
||
Line 10: | Line 10: | ||
= Installing Nvidia drivers on NixOS = | = Installing Nvidia drivers on NixOS = | ||
NixOS uses a functional package management approach, | NixOS uses a functional package management approach – this section, like many others, will tell you how to change your <code>configuration.nix</code> to define what kind of environment you want on your system. | ||
For the impatient | For the impatient: | ||
* [https://nixos.org/manual/nixos/unstable/#sec-x11-graphics-cards-nvidia Nvidia section] in the NixOS Manual offers a shorter guide. | |||
* Basic installation is as simple as <code>services.xserver.videoDrivers = [ "nvidia" ];</code> (once you have unfree software enabled), which causes the default stable version to be pulled in. | |||
* Older cards may need an older driver; see [[#Determining the correct driver version]], which describes <code>hardware.nvidia.package</code>. | |||
* [[#Modifying the NixOS Configuration]] puts it all together and shows the other <code>hardware.nvidia</code> settings, some irrelevant to this driver (e.g. <code>hardware.nvidia.open</code>, which takes you to the Nvidia open kernel driver.) | |||
== Enable unfree software repositories == | == Enable unfree software repositories == |