mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 09:17:14 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			34 lines
		
	
	
		
			701 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			701 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{ lib, ... }:
 | 
						|
 | 
						|
{
 | 
						|
  imports = [
 | 
						|
    ../../common/cpu/amd
 | 
						|
    ../../common/cpu/amd/pstate.nix
 | 
						|
    ../../common/gpu/amd
 | 
						|
    ../../common/gpu/nvidia/prime.nix
 | 
						|
    ../../common/gpu/nvidia/ampere
 | 
						|
    ../../common/pc/laptop
 | 
						|
    ../../common/pc/laptop/ssd
 | 
						|
  ];
 | 
						|
 | 
						|
  hardware.nvidia = {
 | 
						|
    modesetting.enable = lib.mkDefault true;
 | 
						|
    open = lib.mkDefault false;
 | 
						|
    nvidiaSettings = lib.mkDefault true;
 | 
						|
    dynamicBoost.enable = lib.mkDefault true;
 | 
						|
 | 
						|
    prime = {
 | 
						|
      amdgpuBusId = "PCI:0:6:0";
 | 
						|
      nvidiaBusId = "PCI:0:1:0";
 | 
						|
    };
 | 
						|
  };
 | 
						|
 | 
						|
  services = {
 | 
						|
    asusd = {
 | 
						|
      enable = lib.mkDefault true;
 | 
						|
      enableUserService = lib.mkDefault true;
 | 
						|
    };
 | 
						|
    supergfxd.enable = lib.mkDefault true;
 | 
						|
  };
 | 
						|
}
 |