mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-07 18:38:44 +08:00
common: Move Intel generation-specific config from cpu to gpu
These modules only included gpu configuration, so belong in that location.
This commit is contained in:
committed by
mergify[bot]
parent
72d3c00702
commit
ba8294c0a1
12
common/gpu/intel/tiger-lake/default.nix
Normal file
12
common/gpu/intel/tiger-lake/default.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{ 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" ];
|
||||
})
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user