nix-config/modules/hardware/nvidia.nix

19 lines
375 B
Nix
Raw Normal View History

2023-10-13 20:52:26 +02:00
{
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;
};
};
}