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:
Lyndon Sanche
2024-06-28 18:23:23 -06:00
committed by mergify[bot]
parent 72d3c00702
commit ba8294c0a1
32 changed files with 28 additions and 28 deletions

View 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" ];
})
];
}