24 lines
476 B
Nix
24 lines
476 B
Nix
{ config, ... }:
|
|
{
|
|
hardware.nvidia = {
|
|
modesetting.enable = true;
|
|
|
|
powerManagement = {
|
|
enable = false;
|
|
finegrained = false;
|
|
};
|
|
|
|
# Don't use the open-source driver!
|
|
open = false;
|
|
|
|
nvidiaSettings = true;
|
|
|
|
# Fix screen tearing.
|
|
forceFullCompositionPipeline = true;
|
|
|
|
# Optional, but specify version of driver.
|
|
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
|
};
|
|
|
|
services.xserver.videoDrivers = [ "nvidia" ];
|
|
}
|