flake/nixos/hardware/gpu/nvidia.nix

18 lines
463 B
Nix
Raw Normal View History

2023-09-19 00:17:43 +00:00
{ config, ... }:
# NVIDIA drivers
# fuck you nvidia btw
{
services.xserver.videoDrivers = [ "nvidia" ]; # tell xorg to use the nvidia driver, also valid for wayland
hardware.nvidia = {
package = config.boot.kernelPackages.nvidiaPackages.stable;
open = false;
modesetting.enable = true;
#dynamicboost.enable = true;
powerManagement = {
enable = true; # experimental power management feature
#finegrained = true;
};
};
}