Might need to be adapted if used on ARC or really old iGPUs. See nixos documentation
16 lines
290 B
Nix
16 lines
290 B
Nix
{
|
|
flake.modules.nixos.intel-gpu = {pkgs, ...}: {
|
|
boot.kernelModules = [ "kvm-intel" ];
|
|
|
|
hardware.graphics = {
|
|
enable = true;
|
|
extraPackages = with pkgs; [
|
|
intel-media-driver
|
|
intel-compute-runtime
|
|
];
|
|
};
|
|
|
|
environment.sessionVariables.LIBVA_DRIVER_NAME = "iHD";
|
|
};
|
|
}
|