nix-config/modules/hardware/nvidia.nix

17 lines
332 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;
open = true;
nvidiaSettings = true;
};
};
}