mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 17:27:14 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			446 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			446 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{
 | 
						|
  imports = [
 | 
						|
    ../../../common/cpu/intel
 | 
						|
    ../../../common/gpu/intel/kaby-lake
 | 
						|
    ../../../common/pc/laptop
 | 
						|
    ./xps-common.nix
 | 
						|
    ../../../common/gpu/nvidia
 | 
						|
  ];
 | 
						|
 | 
						|
  hardware.graphics = {
 | 
						|
    enable = true;
 | 
						|
    driSupport = true;
 | 
						|
    driSupport32Bit = true;
 | 
						|
  };
 | 
						|
 | 
						|
  hardware.nvidia.modesetting.enable = true;
 | 
						|
 | 
						|
  hardware.nvidia.prime = {
 | 
						|
  # integrated
 | 
						|
    intelBusId = "PCI:0:2:0";
 | 
						|
 | 
						|
  # dedicated
 | 
						|
    nvidiaBusId = "PCI:1:0:0";
 | 
						|
  };
 | 
						|
}
 |