19 lines
375 B
Nix
19 lines
375 B
Nix
|
{
|
||
|
config,
|
||
|
pkgs,
|
||
|
...
|
||
|
}: {
|
||
|
services.xserver.videoDrivers = ["nvidia"];
|
||
|
hardware = {
|
||
|
opengl.enable = true;
|
||
|
nvidia = {
|
||
|
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||
|
modesetting.enable = true;
|
||
|
powerManagement.enable = false;
|
||
|
powerManagement.finegrained = false;
|
||
|
open = true;
|
||
|
nvidiaSettings = true;
|
||
|
};
|
||
|
};
|
||
|
}
|