nixos-configuration/nix-os/nvidia.nix

24 lines
647 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 {
version = "555.42.02";
sha256_64bit = "sha256-k7cI3ZDlKp4mT46jMkLaIrc2YUx1lh1wj/J4SVSHWyk=";
settingsSha256 = "sha256-rtDxQjClJ+gyrCLvdZlT56YyHQ4sbaL+d5tL4L4VfkA=";
persistencedSha256 = "";
};
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
}