mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 09:17:14 +08:00 
			
		
		
		
	fixes https://github.com/NixOS/nixos-hardware/issues/1114 and tlp also no longer recommands it.
		
			
				
	
	
		
			26 lines
		
	
	
		
			698 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			698 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{ pkgs, lib, ... }:
 | 
						|
{
 | 
						|
  imports = [
 | 
						|
    ../../../../common/cpu/intel
 | 
						|
    ../../../../common/pc/laptop
 | 
						|
    ../../../../common/pc/laptop/ssd
 | 
						|
  ];
 | 
						|
 | 
						|
  # Needed for wifi
 | 
						|
  hardware.enableRedistributableFirmware = lib.mkDefault true;
 | 
						|
 | 
						|
  # Cooling management
 | 
						|
  services.thermald.enable = lib.mkDefault true;
 | 
						|
 | 
						|
  # Allows for updating firmware via `fwupdmgr`.
 | 
						|
  services.fwupd.enable = lib.mkDefault true;
 | 
						|
 | 
						|
  # Enables ACPI platform profiles
 | 
						|
  boot = lib.mkIf (lib.versionAtLeast pkgs.linux.version "6.1") {
 | 
						|
    kernelModules = [ "hp-wmi" ];
 | 
						|
  };
 | 
						|
 | 
						|
  # reduces warnings/errors in boot log, seems to eliminate the ocassional boot hangs described in readme
 | 
						|
  hardware.enableAllFirmware = lib.mkDefault true;
 | 
						|
}
 |