Define shared laptop configuration. The primary impetus of this change was `powerManagement.powertop`. Change-Id: Icbd04a252005ab391dc8f7d5ebf0968af91f2e0c Reviewed-on: https://cl.tvl.fyi/c/depot/+/5910 Tested-by: BuildkiteCI Reviewed-by: wpcarro <wpcarro@gmail.com> Autosubmit: wpcarro <wpcarro@gmail.com>
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			306 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			306 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| # Laptop-specific NixOS configuration.
 | |
| _:
 | |
| 
 | |
| {
 | |
|   # Automatically detect location for redshift.
 | |
|   services.geoclue2.enable = true;
 | |
|   location.provider = "geoclue2";
 | |
| 
 | |
|   # Enable power-saving features.
 | |
|   powerManagement.powertop.enable = true;
 | |
| 
 | |
|   # Backlight control command.
 | |
|   programs.light.enable = true;
 | |
| }
 | |
| 
 |