mirror of
https://github.com/youwen5/nixos.git
synced 2024-11-28 11:43:51 -08:00
15 lines
364 B
Nix
15 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" ];
|
|
}
|