liminalOS/modules/nixos/nvidia/default.nix

16 lines
364 B
Nix
Raw Normal View History

2024-08-05 02:51:43 -07:00
{ 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" ];
}