mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-25 01:11:54 -05:00
31 lines
742 B
Nix
31 lines
742 B
Nix
{pkgs, ...}: {
|
|
boot.initrd.kernelModules = ["i915"];
|
|
|
|
environment.sessionVariables = {
|
|
LIBVA_DRIVER_NAME = "iHD";
|
|
VDPAU_DRIVER = "va_gl";
|
|
};
|
|
|
|
hardware = {
|
|
intel-gpu-tools.enable = true;
|
|
|
|
graphics = {
|
|
enable = 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"];
|
|
}
|