mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 09:17:14 +08:00 
			
		
		
		
	init configuration for t14 intel gen1 with and without nvidia dedicated graphics card ref: https://thinkwiki.de/T14_Gen_1_(Intel)
		
			
				
	
	
		
			29 lines
		
	
	
		
			858 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			858 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{ lib, config, ... }:
 | 
						|
{
 | 
						|
  imports = [
 | 
						|
    ../../../../../../common/gpu/nvidia/pascal
 | 
						|
    ../../../../../../common/gpu/nvidia/prime-sync.nix
 | 
						|
 | 
						|
    ../.
 | 
						|
  ];
 | 
						|
  hardware = {
 | 
						|
    graphics = {
 | 
						|
      enable = lib.mkDefault true;
 | 
						|
      enable32Bit = lib.mkDefault true;
 | 
						|
    };
 | 
						|
    nvidia = {
 | 
						|
      powerManagement.enable = lib.mkDefault true;
 | 
						|
      modesetting.enable = lib.mkDefault true;
 | 
						|
 | 
						|
      dynamicBoost.enable = lib.mkForce false; # Dynamic boost is not supported on Pascal architeture
 | 
						|
      prime = {
 | 
						|
        # 00:02.0 VGA compatible controller: Intel Corporation CometLake-U GT2 [UHD Graphics] (rev 02)
 | 
						|
        intelBusId = lib.mkDefault "PCI:0:2:0";
 | 
						|
        # 2d:00.0 3D controller: NVIDIA Corporation GP108M [GeForce MX330] (rev a1)
 | 
						|
        nvidiaBusId = lib.mkDefault "PCI:45:0:0";
 | 
						|
      };
 | 
						|
    };
 | 
						|
  };
 | 
						|
  services.thermald.enable = lib.mkDefault true;
 | 
						|
}
 |