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