···174174 of adding <literal>gutenprint</literal> to the <literal>drivers</literal> list.
175175 </para>
176176 </listitem>
177177+178178+ <listitem>
179179+ <para><literal>services.xserver.vaapiDrivers</literal> has been removed. Use
180180+ <literal>services.hardware.opengl.extraPackages{,32}</literal> instead. You can
181181+ also specify VDPAU drivers there.</para>
182182+ </listitem>
177183</itemizedlist>
178184179185
+5-2
nixos/modules/hardware/opengl.nix
···9393 hardware.opengl.extraPackages = mkOption {
9494 type = types.listOf types.package;
9595 default = [];
9696+ example = literalExample "with pkgs; [ vaapiIntel libvdpau-va-gl vaapiVdpau ]";
9697 description = ''
9797- Additional packages to add to OpenGL drivers.
9898+ Additional packages to add to OpenGL drivers. This can be used
9999+ to add additional VA-API/VDPAU drivers.
98100 '';
99101 };
100102101103 hardware.opengl.extraPackages32 = mkOption {
102104 type = types.listOf types.package;
103105 default = [];
106106+ example = literalExample "with pkgs; [ vaapiIntel libvdpau-va-gl vaapiVdpau ]";
104107 description = ''
105108 Additional packages to add to 32-bit OpenGL drivers on
106109 64-bit systems. Used when <option>driSupport32Bit</option> is
107107- set.
110110+ set. This can be used to add additional VA-API/VDPAU drivers.
108111 '';
109112 };
110113
···1616 cfg = config.services.xserver;
1717 xorg = pkgs.xorg;
18181919- vaapiDrivers = pkgs.buildEnv {
2020- name = "vaapi-drivers";
2121- paths = cfg.vaapiDrivers;
2222- # We only want /lib/dri, but with a single input path, we need "/" for it to work
2323- pathsToLink = [ "/" ];
2424- };
2525-2619 fontconfig = config.fonts.fontconfig;
2720 xresourcesXft = pkgs.writeText "Xresources-Xft" ''
2821 ${optionalString (fontconfig.dpi != 0) ''Xft.dpi: ${toString fontconfig.dpi}''}
···10699 elif test -e ~/.Xdefaults; then
107100 ${xorg.xrdb}/bin/xrdb -merge ~/.Xdefaults
108101 fi
109109-110110- export LIBVA_DRIVERS_PATH=${vaapiDrivers}/lib/dri
111102112103 # Speed up application start by 50-150ms according to
113104 # http://kdemonkey.blogspot.nl/2008/04/magic-trick.html