mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 09:17:14 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
		
			540 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			540 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{ lib, ... }:
 | 
						|
 | 
						|
{
 | 
						|
  imports = [
 | 
						|
    ../../../common/cpu/amd
 | 
						|
    ../../../common/cpu/amd/pstate.nix
 | 
						|
    ../../../common/gpu/amd
 | 
						|
    ../../../common/gpu/nvidia/prime.nix
 | 
						|
    ../../../common/pc/laptop
 | 
						|
    ../../../common/pc/laptop/ssd
 | 
						|
  ];
 | 
						|
 | 
						|
  hardware.nvidia.prime = {
 | 
						|
    amdgpuBusId = "PCI:4:0:0";
 | 
						|
    nvidiaBusId = "PCI:1:0:0";
 | 
						|
  };
 | 
						|
 | 
						|
  services = {
 | 
						|
    asusd.enable = lib.mkDefault true;
 | 
						|
 | 
						|
    # fixes mic mute button
 | 
						|
    udev.extraHwdb = ''
 | 
						|
      evdev:name:*:dmi:bvn*:bvr*:bd*:svnASUS*:pn*:*
 | 
						|
       KEYBOARD_KEY_ff31007c=f20
 | 
						|
    '';
 | 
						|
  };
 | 
						|
}
 |