nixos-configuration/nix-os/nvidia.nix

26 lines
850 B
Nix
Raw Normal View History

2023-12-12 00:48:10 +01:00
{ config, lib, pkgs, ...}:
{
hardware.opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
};
services.xserver.videoDrivers = ["nvidia"];
hardware.nvidia = {
modesetting.enable = true;
powerManagement.enable = true;
open = false;
nvidiaSettings = true;
2024-06-05 16:20:06 +02:00
package = config.boot.kernelPackages.nvidiaPackages.mkDriver {
2024-07-21 22:01:04 +02:00
version = "555.58.02";
sha256_64bit = "sha256-xctt4TPRlOJ6r5S54h5W6PT6/3Zy2R4ASNFPu8TSHKM=";
sha256_aarch64 = "sha256-wb20isMrRg8PeQBU96lWJzBMkjfySAUaqt4EgZnhyF8=";
openSha256 = "sha256-8hyRiGB+m2hL3c9MDA/Pon+Xl6E788MZ50WrrAGUVuY=";
settingsSha256 = "sha256-ZpuVZybW6CFN/gz9rx+UJvQ715FZnAOYfHn5jt5Z2C8=";
persistencedSha256 = "sha256-a1D7ZZmcKFWfPjjH1REqPM5j/YLWKnbkP9qfRyIyxAw=";
2024-06-05 16:20:06 +02:00
};
2023-12-12 00:48:10 +01:00
};
2024-06-05 16:20:06 +02:00
nixpkgs.config.nvidia.acceptLicense = true;
2023-12-12 00:48:10 +01:00
}