2022-12-19 09:09:08 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
2022-12-05 15:00:54 +00:00
|
|
|
services.xserver = {
|
2022-12-19 09:09:08 +00:00
|
|
|
videoDrivers = ["intel"];
|
2022-12-05 15:00:54 +00:00
|
|
|
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;};
|
2022-12-05 15:00:54 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|