mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-12-19 15:31:17 +01: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:
parent
72d3c00702
commit
ba8294c0a1
32 changed files with 28 additions and 28 deletions
7
common/gpu/intel/comet-lake/default.nix
Normal file
7
common/gpu/intel/comet-lake/default.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
imports = [ ../. ];
|
||||
|
||||
boot.kernelParams = [
|
||||
"i915.enable_guc=2"
|
||||
];
|
||||
}
|
||||
7
common/gpu/intel/elkhart-lake/default.nix
Normal file
7
common/gpu/intel/elkhart-lake/default.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
imports = [ ../. ];
|
||||
|
||||
boot.kernelParams = [
|
||||
"i915.enable_guc=2"
|
||||
];
|
||||
}
|
||||
7
common/gpu/intel/jasper-lake/default.nix
Normal file
7
common/gpu/intel/jasper-lake/default.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
imports = [ ../. ];
|
||||
|
||||
boot.kernelParams = [
|
||||
"i915.enable_guc=2"
|
||||
];
|
||||
}
|
||||
8
common/gpu/intel/kaby-lake/default.nix
Normal file
8
common/gpu/intel/kaby-lake/default.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
imports = [ ../. ];
|
||||
|
||||
boot.kernelParams = [
|
||||
"i915.enable_fbc=1"
|
||||
"i915.enable_psr=2"
|
||||
];
|
||||
}
|
||||
9
common/gpu/intel/sandy-bridge/default.nix
Normal file
9
common/gpu/intel/sandy-bridge/default.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
imports = [ ../. ];
|
||||
|
||||
# Enables RC6, RC6p and RC6pp.
|
||||
# Last two are only available on Sandy Bridge CPUs (circa 2011).
|
||||
boot.kernelParams = [
|
||||
"i915.enable_rc6=7"
|
||||
];
|
||||
}
|
||||
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" ];
|
||||
})
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue