aboutsummaryrefslogtreecommitdiff
path: root/nix/modules/nvidia.nix
blob: a1dc8405ff0202768a8468031e210eb0ce80e0c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ config, lib, pkgs, ... }:
{
  hardware = {
    graphics.extraPackages = with pkgs; [
	vaapiVdpau
	libvdpau-va-gl
	nvidia-vaapi-driver
    ];

    nvidia = {
	modesetting.enable = true;
	powerManagement = {
		enable = true;
		finegrained = false;
	};
	nvidiaSettings = true;
	open = false;
	package = config.boot.kernelPackages.nvidiaPackages.stable;
    };
  };
}