mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 17:27:14 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			485 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			485 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{ lib, ... }:
 | 
						|
 | 
						|
{
 | 
						|
  imports = [
 | 
						|
    ../../../common/cpu/intel
 | 
						|
    ../../../common/pc/laptop
 | 
						|
    ../../../common/pc/ssd
 | 
						|
  ];
 | 
						|
 | 
						|
  # Important Firmware
 | 
						|
  hardware.enableRedistributableFirmware = lib.mkDefault true;
 | 
						|
 | 
						|
  boot = {
 | 
						|
    # Kernel Panic on suspend fix, taken from ArchLinux wiki.
 | 
						|
    kernelParams = [
 | 
						|
      "acpi_enforce_resources=lax"
 | 
						|
      "i915.enable_dc=0"
 | 
						|
    ];
 | 
						|
    # Audio Mute LED
 | 
						|
    extraModprobeConfig = ''
 | 
						|
      options snd-hda-intel model=mute-led-gpio
 | 
						|
    '';
 | 
						|
  };
 | 
						|
}
 |