mirror of
https://github.com/youwen5/nixos.git
synced 2024-11-24 17:53:51 -08:00
16 lines
364 B
Nix
16 lines
364 B
Nix
{ config, ... }:
|
|
{
|
|
hardware.nvidia = {
|
|
modesetting.enable = true;
|
|
powerManagement.enable = true;
|
|
powerManagement.finegrained = false;
|
|
open = false;
|
|
nvidiaSettings = true;
|
|
};
|
|
|
|
hardware.graphics.enable = true;
|
|
|
|
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable;
|
|
|
|
services.xserver.videoDrivers = [ "nvidia" ];
|
|
}
|