blob: f6a398ac5a04b69b2495c60664af6440cab30283 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
{ config, lib, pkgs, ... }:
{
hardware = {
graphics.extraPackages = (if config.monorepo.profiles.cuda.enable
then with pkgs; [
libva-vdpau-driver
libvdpau-va-gl
nvidia-vaapi-driver
] else []);
nvidia = {
modesetting.enable = lib.mkDefault config.monorepo.profiles.cuda.enable;
powerManagement = {
enable = lib.mkDefault config.monorepo.profiles.cuda.enable;
finegrained = false;
};
nvidiaSettings = lib.mkDefault config.monorepo.profiles.cuda.enable;
open = config.monorepo.profiles.cuda.enable;
package = config.boot.kernelPackages.nvidiaPackages.stable;
};
};
}
|