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:
parent
86a33c3e32
commit
be33295d69
1 changed files with 5 additions and 9 deletions
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue