about summary refs log tree commit diff stats
path: root/system/graphics/default.nix
blob: dba4ba90acedd4f0c2b6bdcdb847507ec708b65e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
  config,
  pkgs,
  ...
}: {
  nixpkgs.config.packageOverrides = pkgs: {
    vaapiIntel = pkgs.vaapiIntel.override {enableHybridCodec = true;};
  };
  hardware.opengl = {
    enable = true;
    extraPackages = builtins.attrValues {
      # TODO should this activate intel stuff here?
      inherit
        (pkgs)
        intel-media-driver # LIBVA_DRIVER_NAME=iHD
        vaapiIntel # LIBVA_DRIVER_NAME=i965 (older but works better for Firefox/Chromium)
        vaapiVdpau
        libvdpau-va-gl
        ;
    };
  };
}
# vim: ts=2