mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 09:17:14 +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
				
			@@ -1,7 +0,0 @@
 | 
			
		||||
{
 | 
			
		||||
  imports = [ ../. ];
 | 
			
		||||
 | 
			
		||||
  boot.kernelParams = [
 | 
			
		||||
    "i915.enable_guc=2"
 | 
			
		||||
  ];
 | 
			
		||||
}
 | 
			
		||||
@@ -1,7 +0,0 @@
 | 
			
		||||
{
 | 
			
		||||
  imports = [ ../. ];
 | 
			
		||||
 | 
			
		||||
  boot.kernelParams = [
 | 
			
		||||
    "i915.enable_guc=2"
 | 
			
		||||
  ];
 | 
			
		||||
}
 | 
			
		||||
@@ -1,7 +0,0 @@
 | 
			
		||||
{
 | 
			
		||||
  imports = [ ../. ];
 | 
			
		||||
 | 
			
		||||
  boot.kernelParams = [
 | 
			
		||||
    "i915.enable_guc=2"
 | 
			
		||||
  ];
 | 
			
		||||
}
 | 
			
		||||
@@ -1,8 +0,0 @@
 | 
			
		||||
{
 | 
			
		||||
  imports = [ ../. ];
 | 
			
		||||
 | 
			
		||||
  boot.kernelParams = [
 | 
			
		||||
    "i915.enable_fbc=1"
 | 
			
		||||
    "i915.enable_psr=2"
 | 
			
		||||
  ];
 | 
			
		||||
}
 | 
			
		||||
@@ -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"
 | 
			
		||||
  ];
 | 
			
		||||
}
 | 
			
		||||
@@ -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" ];
 | 
			
		||||
    })
 | 
			
		||||
  ];
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user