mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 17:27:14 +08:00 
			
		
		
		
	feat: Add support for Dell XPS 15-9530 with NVIDIA graphics
- Added `default.nix` file for Dell XPS 15-9530 configuration - Imported necessary files for CPU, laptop, SSD, and fingerprint - Enabled thermald service - Configured iwlwifi module with power saving option - Removed commented out code for `disable_11ax` option - Added `default.nix` file for NVIDIA configuration in Dell XPS 15-9530 - Imported `default.nix` file from parent directory and NVIDIA prime configuration file - Configured `hardware.nvidia.prime` with Bus IDs of Intel and NVIDIA GPUs [dell/xps/15-9530/default.nix] - Add a new file `dell/xps/15-9530/default.nix` - Import the following files: `../../../common/cpu/intel`, `../../../common/pc/laptop`, `../../../common/pc/laptop/ssd`, and `./fingerprint` - Enable thermald service - Add configuration for iwlwifi module with `options iwlwifi power_save=1` - Remove commented out code for `disable_11ax` option [dell/xps/15-9530/nvidia/default.nix] - Added a new file `default.nix` in the directory `dell/xps/15-9530/nvidia/` - The file `default.nix` includes two imports: `../default.nix` and `../../../../common/gpu/nvidia/prime.nix` - Added a configuration for `hardware.nvidia.prime` which includes the Bus IDs of the Intel and NVIDIA GPUs. Co-authored-by: Felix Svensson <klowdo.fs@gmail.com>
This commit is contained in:
		
				
					committed by
					
						
						mergify[bot]
					
				
			
			
				
	
			
			
			
						parent
						
							08c94a8b62
						
					
				
				
					commit
					3e2ea8a49d
				
			
							
								
								
									
										29
									
								
								dell/xps/15-9530/default.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								dell/xps/15-9530/default.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,29 @@
 | 
			
		||||
{ lib, ... }:
 | 
			
		||||
{
 | 
			
		||||
  imports = [
 | 
			
		||||
    ../../../common/cpu/intel
 | 
			
		||||
    ../../../common/pc/laptop
 | 
			
		||||
    ../../../common/pc/laptop/ssd
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  # This will save you money and possibly your life!
 | 
			
		||||
  services.thermald.enable = lib.mkDefault true;
 | 
			
		||||
 | 
			
		||||
  # 9530 wifi is:
 | 
			
		||||
  # > lspci | grep i Network
 | 
			
		||||
  # - 00:14.3 Network controller: Intel Corporation Raptor Lake PCH CNVi WiFi (rev 01)
 | 
			
		||||
  # > sudo lspci -vv -s 00:14.3
 | 
			
		||||
  # 00:14.3 Network controller: Intel Corporation Raptor Lake PCH CNVi WiFi (rev 01)
 | 
			
		||||
	# Subsystem: Intel Corporation Wi-Fi 6E AX211 160MHz
 | 
			
		||||
  #
 | 
			
		||||
  # WiFi speed is slow and crashes by default (https://bugzilla.kernel.org/show_bug.cgi?id=213381)
 | 
			
		||||
  # disable_11ax - required until ax driver support is fixed
 | 
			
		||||
  # power_save - works well on this card
 | 
			
		||||
  # boot.extraModprobeConfig = ''
 | 
			
		||||
  #   options iwlwifi power_save=1 disable_11ax=1
 | 
			
		||||
  # '';
 | 
			
		||||
 | 
			
		||||
  boot.extraModprobeConfig = ''
 | 
			
		||||
    options iwlwifi power_save=1
 | 
			
		||||
  '';
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										15
									
								
								dell/xps/15-9530/nvidia/default.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								dell/xps/15-9530/nvidia/default.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
			
		||||
{ lib, ... }:
 | 
			
		||||
{
 | 
			
		||||
  imports = [
 | 
			
		||||
    ../default.nix
 | 
			
		||||
    ../../../../common/gpu/nvidia/prime.nix
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  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";
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user