mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 01:07:14 +08:00 
			
		
		
		
	Created a config file for Huawei Matebook X Pro (2020). This file should work on all versions other than MACHC-WAH9L as that one does not include the Nvidia MX250 dGPU.
		
			
				
	
	
		
			29 lines
		
	
	
		
			563 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			563 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{
 | 
						|
  lib,
 | 
						|
  pkgs,
 | 
						|
  config,
 | 
						|
  ...
 | 
						|
}: {
 | 
						|
  imports = [
 | 
						|
    ../../common/cpu/intel
 | 
						|
    ../../common/cpu/intel/comet-lake
 | 
						|
    ../../common/gpu/nvidia
 | 
						|
    ../../common/gpu/nvidia/prime.nix
 | 
						|
    ../../common/hidpi.nix
 | 
						|
    ../../common/pc/laptop
 | 
						|
    ../../common/pc/ssd
 | 
						|
  ];
 | 
						|
 | 
						|
  hardware.nvidia = {
 | 
						|
    modesetting.enable = lib.mkDefault true;
 | 
						|
    open = lib.mkDefault false;
 | 
						|
    nvidiaSettings = lib.mkDefault true;
 | 
						|
    prime = {
 | 
						|
      intelBusId = "PCI:0:2:0";
 | 
						|
      nvidiaBusId = "PCI:1:0:0";
 | 
						|
    };
 | 
						|
  };
 | 
						|
 | 
						|
  services.power-profiles-daemon.enable = lib.mkDefault true;
 | 
						|
}
 |