dotfiles/nixos/gfx-intel-dri2.nix

31 lines
504 B
Nix
Raw Normal View History

2022-12-19 09:09:08 +00:00
{
config,
pkgs,
...
}: {
services.xserver = {
2022-12-19 09:09:08 +00:00
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: {
2022-12-19 09:09:08 +00:00
vaapiIntel = pkgs.vaapiIntel.override {enableHybridCodec = true;};
};
};
}