NVIDIA: Difference between revisions
fix indentation of code |
Loosetooth (talk | contribs) No edit summary |
||
Line 289: | Line 289: | ||
Then restart your graphical environment session (or simply reboot). | Then restart your graphical environment session (or simply reboot). | ||
=== Running Specific NVIDIA Driver Versions === | |||
To run a specific version of the NVIDIA driver in NixOS, you can customize your configuration by specifying the desired version along with the corresponding SHA256 hashes. Below is an example configuration for using NVIDIA driver version `555.58.02`: | |||
{{file|/etc/nixos/nvidia.nix|nix|<nowiki> | |||
package = config.boot.kernelPackages.nvidiaPackages.mkDriver { | |||
version = "555.58.02"; | |||
sha256_64bit = "sha256-xctt4TPRlOJ6r5S54h5W6PT6/3Zy2R4ASNFPu8TSHKM="; | |||
sha256_aarch64 = "sha256-xctt4TPRlOJ6r5S54h5W6PT6/3Zy2R4ASNFPu8TSHKM="; | |||
openSha256 = "sha256-ZpuVZybW6CFN/gz9rx+UJvQ715FZnAOYfHn5jt5Z2C8="; | |||
settingsSha256 = "sha256-ZpuVZybW6CFN/gz9rx+UJvQ715FZnAOYfHn5jt5Z2C8="; | |||
persistencedSha256 = lib.fakeSha256; | |||
}; | |||
</nowiki>}} | |||
In this configuration: | |||
- Replace `version` with the desired driver version. | |||
- Update the SHA256 hashes to match the new version you want to use. | |||
- After updating the configuration, run <code>sudo nixos-rebuild switch</code> to apply the changes and load the specified NVIDIA driver version. | |||
This allows you to pin the specific driver version being used in your NixOS installation. | |||
=== Running the new RTX SUPER on NixOS stable === | === Running the new RTX SUPER on NixOS stable === |