common/gpu/intel/lunar-lake: enable xe driver

Starting with lunarlake this driver no longer needs to force probe:

https://github.com/torvalds/linux/blob/ad46e8f95e931e113cb98253daf6d443ac244cde/drivers/gpu/drm/xe/xe_pci.c#L339

Co-authored-by: Gavin John <gavinnjohn@gmail.com>
This commit is contained in:
Jörg ThalheimandGavin John committed 2024-10-22 18:27:09 +02:00
1 parent 7495e87753
commit 6e486f2812
3 files changed
+19

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
{
imports = [
../cpu-only.nix
];
}
+6
View File
@@ -0,0 +1,6 @@
{
imports = [
./cpu-only.nix
../../../gpu/intel/lunar-lake
];
}
+8
View File
@@ -0,0 +1,8 @@
{ config, lib, ... }:
{
imports = [ ../. ];
hardware.intelgpu = {
driver = lib.mkIf (lib.versionAtLeast config.boot.kernelPackages.kernel.version "6.8") "xe";
vaapiDriver = "intel-media-driver";
};
}