mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 09:17:14 +08:00 
			
		
		
		
	dell-precision-3490: split into intel and nvidia configurations
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
This commit is contained in:
		
				
					committed by
					
						
						Jörg Thalheim
					
				
			
			
				
	
			
			
			
						parent
						
							11f2d9ea49
						
					
				
				
					commit
					293b5e472b
				
			@@ -1,21 +1,16 @@
 | 
			
		||||
{
 | 
			
		||||
  warnings = [
 | 
			
		||||
    ''
 | 
			
		||||
      DEPRECATED: The <nixos-hardware/dell/precision/3490> module has been deprecated.
 | 
			
		||||
 | 
			
		||||
      Either use
 | 
			
		||||
        <nixos-hardware/dell/precision/3490/nvidia>
 | 
			
		||||
      for NVIDIA graphics or
 | 
			
		||||
        <nixos-hardware/dell/precision/3490/intel>
 | 
			
		||||
      for Intel graphics.
 | 
			
		||||
    ''
 | 
			
		||||
  ];
 | 
			
		||||
  imports = [
 | 
			
		||||
    ../../../common/cpu/intel/meteor-lake
 | 
			
		||||
    ../../../common/gpu/nvidia/ada-lovelace
 | 
			
		||||
    ../../../common/pc/laptop
 | 
			
		||||
    ./nvidia/default.nix
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  boot.initrd.availableKernelModules = [
 | 
			
		||||
    "nvme"
 | 
			
		||||
    "sd_mod"
 | 
			
		||||
    "thunderbolt"
 | 
			
		||||
    "usb_storage"
 | 
			
		||||
    "vmd"
 | 
			
		||||
    "xhci_pci"
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  hardware.nvidia.prime = {
 | 
			
		||||
    intelBusId = "PCI:0:2:0";
 | 
			
		||||
    nvidiaBusId = "PCI:1:0:0";
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										5
									
								
								dell/precision/3490/intel/default.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								dell/precision/3490/intel/default.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
			
		||||
{
 | 
			
		||||
  imports = [
 | 
			
		||||
    ../shared.nix
 | 
			
		||||
  ];
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										12
									
								
								dell/precision/3490/nvidia/default.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								dell/precision/3490/nvidia/default.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,12 @@
 | 
			
		||||
{
 | 
			
		||||
  imports = [
 | 
			
		||||
    ../shared.nix
 | 
			
		||||
    ../../../../common/gpu/nvidia/ada-lovelace
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
  hardware.nvidia.prime = {
 | 
			
		||||
    intelBusId = "PCI:0:2:0";
 | 
			
		||||
    nvidiaBusId = "PCI:1:0:0";
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										6
									
								
								dell/precision/3490/shared.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								dell/precision/3490/shared.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
			
		||||
{
 | 
			
		||||
  imports = [
 | 
			
		||||
    ../../../common/cpu/intel/meteor-lake
 | 
			
		||||
    ../../../common/pc/laptop
 | 
			
		||||
  ];
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user