blob: b2b0de48aa6cfb0675bc7e478395d94978e3438a [file] [log] [blame]
PineaFan66e46742024-04-20 20:59:22 +01001{ lib, config, ... }:
2{
3 options.chimera.nvidia.enable = lib.mkEnableOption "Enable NVIDIA hardware support";
4
5 config = {
6 services.xserver.videoDrivers = lib.mkIf config.chimera.nvidia.enable ["nvidia"];
7 hardware.nvidia = lib.mkIf config.chimera.nvidia.enable {
8 modesetting.enable = true;
9 open = false;
10 nvidiaSettings = true;
11 package = config.boot.kernelPackages.nvidiaPackages.stable;
12 };
13 };
14}