This results in a much more useful element size. Note that this still does not scale some core UI elements, such as the mouse cursor, at all. Change-Id: I7d4da485f0723740a7228a1561aaf50135c86032 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5575 Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
		
			
				
	
	
		
			17 lines
		
	
	
	
		
			572 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			572 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
# Configuration for machines with HiDPI displays, which are a total
 | 
						|
# mess, of course.
 | 
						|
{ ... }:
 | 
						|
 | 
						|
{
 | 
						|
  # Expose a variable to all programs that might be interested in the
 | 
						|
  # screen settings to do conditional initialisation (mostly for Emacs).
 | 
						|
  environment.variables.HIDPI_SCREEN = "true";
 | 
						|
 | 
						|
  # Ensure a larger font size in early boot stage.
 | 
						|
  hardware.video.hidpi.enable = true;
 | 
						|
 | 
						|
  # Bump DPI across the board.
 | 
						|
  # TODO(tazjin): This should actually be set per monitor, but I
 | 
						|
  # haven't yet figured out the right interface for doing that.
 | 
						|
  services.xserver.dpi = 161;
 | 
						|
}
 |