mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 17:27:14 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			622 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			622 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{ lib, pkgs, ... }:
 | 
						|
 | 
						|
# This module is intended to support the Surface Laptop range, specifically those with AMD CPUs.
 | 
						|
# It's expected it will work equally well on many other Surface models, but they may need further
 | 
						|
# config changes to work well.
 | 
						|
 | 
						|
{
 | 
						|
  imports = [
 | 
						|
    ../common
 | 
						|
    ../../../common/pc
 | 
						|
    ../../../common/pc/ssd
 | 
						|
    ../../../common/cpu/amd
 | 
						|
    ../../../common/cpu/amd/pstate.nix
 | 
						|
    ../../../common/gpu/amd
 | 
						|
  ];
 | 
						|
 | 
						|
  # Note: The IPTS module is not often required on devices with Surface Laptop 3 (AMD).
 | 
						|
  services.iptsd.enable = lib.mkDefault true;
 | 
						|
  environment.systemPackages = [ pkgs.surface-control ];
 | 
						|
}
 |