mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 09:17:14 +08:00 
			
		
		
		
	Extract _actually_ common code out of microsoft/surface/default.nix
This commit is contained in:
		@@ -1,7 +1,22 @@
 | 
			
		||||
{ ... }:
 | 
			
		||||
{ lib, ... }:
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
let
 | 
			
		||||
  inherit (lib) mkDefault;
 | 
			
		||||
 | 
			
		||||
in {
 | 
			
		||||
  imports = [
 | 
			
		||||
    ./kernel
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  microsoft-surface.kernelVersion = mkDefault "6.0.11";
 | 
			
		||||
 | 
			
		||||
  # Seems to be required to properly enable S0ix "Modern Standby":
 | 
			
		||||
  boot.kernelParams = mkDefault [ "mem_sleep_default=deep" ];
 | 
			
		||||
 | 
			
		||||
  # NOTE: Check the README before enabling TLP:
 | 
			
		||||
  services.tlp.enable = mkDefault false;
 | 
			
		||||
 | 
			
		||||
  # i.e. needed for wifi firmware, see https://github.com/NixOS/nixos-hardware/issues/364
 | 
			
		||||
  hardware.enableRedistributableFirmware = mkDefault true;
 | 
			
		||||
  hardware.sensor.iio.enable = mkDefault true;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user