mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-26 08:51:54 -05:00
33 lines
753 B
Nix
33 lines
753 B
Nix
{pkgs, ...}: {
|
|
boot.initrd.kernelModules = ["i915"];
|
|
|
|
environment.sessionVariables = {
|
|
LIBVA_DRIVER_NAME = "iHD";
|
|
VDPAU_DRIVER = "va_gl";
|
|
};
|
|
|
|
hardware = {
|
|
intel-gpu-tools.enable = true;
|
|
|
|
opengl = {
|
|
enable = true;
|
|
driSupport = true;
|
|
driSupport32Bit = true;
|
|
|
|
extraPackages = with pkgs; [
|
|
intel-media-driver # LIBVA_DRIVER_NAME=iHD
|
|
(intel-vaapi-driver.override {enableHybridCodec = true;})
|
|
libvdpau-va-gl
|
|
];
|
|
|
|
extraPackages32 = with pkgs.driversi686Linux; [
|
|
intel-media-driver # LIBVA_DRIVER_NAME=iHD
|
|
(intel-vaapi-driver.override {enableHybridCodec = true;})
|
|
libvdpau-va-gl
|
|
];
|
|
};
|
|
};
|
|
|
|
services.xserver.videoDrivers = ["modesetting"];
|
|
}
|