PineaFan | 66e4674 | 2024-04-20 20:59:22 +0100 | [diff] [blame] | 1 | { 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 | } |