23 lines
647 B
Nix
23 lines
647 B
Nix
{ 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;
|
|
package = config.boot.kernelPackages.nvidiaPackages.mkDriver {
|
|
version = "555.42.02";
|
|
sha256_64bit = "sha256-k7cI3ZDlKp4mT46jMkLaIrc2YUx1lh1wj/J4SVSHWyk=";
|
|
settingsSha256 = "sha256-rtDxQjClJ+gyrCLvdZlT56YyHQ4sbaL+d5tL4L4VfkA=";
|
|
persistencedSha256 = "";
|
|
};
|
|
};
|
|
nixpkgs.config.nvidia.acceptLicense = true;
|
|
}
|