mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 17:27:14 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			707 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			707 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{ ... }:
 | 
						|
 | 
						|
{
 | 
						|
  imports = [ ./hybrid ];
 | 
						|
 | 
						|
  specialisation.ddg.configuration = {
 | 
						|
    # This specialisation is for the case where "DDG" (Dual-Direct GFX, A hardware feature that can enable in bios) is enabled, since the amd igpu is blocked at hardware level and the built-in display is directly connected to the dgpu, we no longer need the amdgpu and prime configuration.
 | 
						|
    system.nixos.tags = [ "Dual-Direct-GFX-Mode" ];
 | 
						|
    services.xserver.videoDrivers = [ "nvidia" ]; # This will override services.xserver.videoDrivers = lib.mkDefault [ "amdgpu" "nvidia" ];
 | 
						|
    hardware = {
 | 
						|
      nvidia.prime.offload.enable = false;
 | 
						|
      amdgpu = {
 | 
						|
        amdvlk = false;
 | 
						|
        opencl = false;
 | 
						|
      };
 | 
						|
    };
 | 
						|
  };
 | 
						|
} |