nixcfg/hwModules/common/gpu/intel/default.nix
Aly Raffauf c40369f1cf
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-build / slateport-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
hwModules/gpu/intel: fix nesting issues
2024-09-27 10:26:45 -04:00

33 lines
795 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 = [
pkgs.intel-media-driver # LIBVA_DRIVER_NAME=iHD
(pkgs.intel-vaapi-driver.override {enableHybridCodec = true;})
pkgs.libvdpau-va-gl
];
extraPackages32 = [
pkgs.driversi686Linux.intel-media-driver # LIBVA_DRIVER_NAME=iHD
(pkgs.driversi686Linux.intel-vaapi-driver.override {enableHybridCodec = true;})
pkgs.driversi686Linux.libvdpau-va-gl
];
};
};
services.xserver.videoDrivers = ["modesetting"];
}