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

@@ -1,7 +0,0 @@
{
imports = [ ../. ];
boot.kernelParams = [
"i915.enable_guc=2"
];
}

View File

@@ -1,7 +0,0 @@
{
imports = [ ../. ];
boot.kernelParams = [
"i915.enable_guc=2"
];
}

View File

@@ -1,7 +0,0 @@
{
imports = [ ../. ];
boot.kernelParams = [
"i915.enable_guc=2"
];
}

View File

@@ -1,8 +0,0 @@
{
imports = [ ../. ];
boot.kernelParams = [
"i915.enable_fbc=1"
"i915.enable_psr=2"
];
}

View File

@@ -1,9 +0,0 @@
{
imports = [ ../. ];
# Enables RC6, RC6p and RC6pp.
# Last two are only available on Sandy Bridge CPUs (circa 2011).
boot.kernelParams = [
"i915.enable_rc6=7"
];
}

View File

@@ -1,12 +0,0 @@
{ 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" ];
})
];
}