blob: b2b0de48aa6cfb0675bc7e478395d94978e3438a [file] [log] [blame]
{ lib, config, ... }:
{
options.chimera.nvidia.enable = lib.mkEnableOption "Enable NVIDIA hardware support";
config = {
services.xserver.videoDrivers = lib.mkIf config.chimera.nvidia.enable ["nvidia"];
hardware.nvidia = lib.mkIf config.chimera.nvidia.enable {
modesetting.enable = true;
open = false;
nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.stable;
};
};
}