1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-23 03:19:42 +01:00

gpu/intel/tiger-lake: simplify conditionals

This commit is contained in:
Jörg Thalheim 2024-10-20 09:30:47 +02:00 committed by mergify[bot]
parent 86a33c3e32
commit be33295d69

View file

@ -1,13 +1,9 @@
{ config, lib, ... }:
{
imports = [ ../. ];
config = lib.mkMerge [
(lib.mkIf (lib.versionAtLeast config.boot.kernelPackages.kernel.version "6.8") {
hardware.intelgpu.driver = "xe";
})
(lib.mkIf (config.hardware.intelgpu.driver == "i915") {
boot.kernelParams = [ "i915.enable_guc=3" ];
})
{ hardware.intelgpu.vaapiDriver = "intel-media-driver"; }
];
config = {
hardware.intelgpu.driver = lib.mkIf (lib.versionAtLeast config.boot.kernelPackages.kernel.version "6.8") "xe";
boot.kernelParams = lib.mkIf (config.hardware.intelgpu.driver == "i915") [ "i915.enable_guc=3" ];
hardware.intelgpu.vaapiDriver = "intel-media-driver";
};
}