1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-27 05:19:43 +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, ... }: { config, lib, ... }:
{ {
imports = [ ../. ]; imports = [ ../. ];
config = lib.mkMerge [ config = {
(lib.mkIf (lib.versionAtLeast config.boot.kernelPackages.kernel.version "6.8") { hardware.intelgpu.driver = lib.mkIf (lib.versionAtLeast config.boot.kernelPackages.kernel.version "6.8") "xe";
hardware.intelgpu.driver = "xe"; boot.kernelParams = lib.mkIf (config.hardware.intelgpu.driver == "i915") [ "i915.enable_guc=3" ];
}) hardware.intelgpu.vaapiDriver = "intel-media-driver";
(lib.mkIf (config.hardware.intelgpu.driver == "i915") { };
boot.kernelParams = [ "i915.enable_guc=3" ];
})
{ hardware.intelgpu.vaapiDriver = "intel-media-driver"; }
];
} }