this has weird side effects on the AMD thinkpad (of course), but since that is stationary in my office anyways the power-saving stuff doesn't matter so much there. Change-Id: Ie43e3a86b2da885c25eb5c3eb36683adb14edd1a Reviewed-on: https://cl.tvl.fyi/c/depot/+/5948 Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			335 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			335 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| # Configuration specifically for laptops that move around.
 | |
| { ... }:
 | |
| 
 | |
| {
 | |
|   time.timeZone = "Europe/Moscow";
 | |
| 
 | |
|   # Automatically detect location for redshift & so on ...
 | |
|   services.geoclue2.enable = true;
 | |
|   location.provider = "geoclue2";
 | |
| 
 | |
|   # Enable power-saving features.
 | |
|   services.tlp.enable = true;
 | |
| 
 | |
|   programs.light.enable = true;
 | |
| }
 |