mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 23:23:55 -05:00
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
33 lines
795 B
Nix
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"];
|
|
}
|