summaryrefslogtreecommitdiff
path: root/profiles/hardware/nvidia.nix
blob: 473eb81085db5f31bfc72f4c7ae946436e1e72d7 (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
{
  config,
  pkgs,
  ...
}: {
  imports = [
    ./.
  ];
  hardware = {
    nvidia = {
      package = config.boot.kernelPackages.nvidiaPackages.stable;
      modesetting.enable = true;
    };
    opengl = {
      enable = true;
      # make steam work
      driSupport32Bit = true;
      extraPackages = with pkgs; [
        vaapiVdpau
      ];
    };
  };

  services.xserver.videoDrivers = ["nvidia"];
}