dotfiles/nixos/gfx-intel-dri2.nix

28 lines
503 B
Nix
Raw Normal View History

{ config, pkgs, ... }: {
services.xserver = {
videoDrivers = [ "intel" ];
deviceSection = ''
Option "DRI" "2"
Option "TearFree" "true"
'';
};
hardware.opengl = {
enable = true;
driSupport = true;
extraPackages = with pkgs; [
vaapiIntel
vaapiVdpau
libvdpau-va-gl
intel-media-driver
];
};
nixpkgs.config = {
packageOverrides = pkgs: {
vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
};
};
}