mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 17:27:14 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			328 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			328 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{ lib, ... }:
 | 
						|
{
 | 
						|
  imports = [
 | 
						|
    ../default.nix
 | 
						|
    ../../../../common/gpu/nvidia/prime.nix
 | 
						|
    ../../../../common/gpu/nvidia/ampere
 | 
						|
  ];
 | 
						|
 | 
						|
  hardware.nvidia.prime = {
 | 
						|
    # Bus ID of the Intel GPU.
 | 
						|
    intelBusId = lib.mkDefault "PCI:0:2:0";
 | 
						|
 | 
						|
    # Bus ID of the NVIDIA GPU.
 | 
						|
    nvidiaBusId = lib.mkDefault "PCI:1:0:0";
 | 
						|
  };
 | 
						|
}
 |