blob: 14c8e3875e83ebdea154ee00bf201b5c37e2283a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
{
config,
lib,
...
}: let
cfg = config.getchoo.hardware.nvidia;
inherit (lib) mkEnableOption mkIf;
in {
options.getchoo.hardware.nvidia.enable = mkEnableOption "enable nvidia support";
config = mkIf cfg.enable {
getchoo.hardware.enable = true;
hardware = {
nvidia = {
package = config.boot.kernelPackages.nvidiaPackages.stable;
modesetting.enable = true;
};
opengl = {
enable = true;
# make steam work
driSupport32Bit = true;
};
};
};
}
|