aboutsummaryrefslogtreecommitdiff
path: root/nix/modules/nvidia.nix
blob: 04d5545bc5ed0b1b27fea353d91df068de86bccf (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;
    };
  };
}