mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 09:17:14 +08:00 
			
		
		
		
	Set a default to fix GTK/GNOME ui elements appareance
This commit is contained in:
		@@ -1,11 +1,18 @@
 | 
			
		||||
# X1 6th generation with a QHD (2560x1440px) display
 | 
			
		||||
{ config,  ... }:
 | 
			
		||||
{ config, lib, ... }:
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
  imports = [
 | 
			
		||||
    ../.
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  # Fix font sizes in X
 | 
			
		||||
  services.xserver.dpi = 210;
 | 
			
		||||
  fonts.fontconfig.dpi = 210;
 | 
			
		||||
 | 
			
		||||
  # Fix sizes of GTK/GNOME ui elements
 | 
			
		||||
  environment.variables = {
 | 
			
		||||
    GDK_SCALE = lib.mkDefault "2";
 | 
			
		||||
    GDK_DPI_SCALE= lib.mkDefault "0.5";
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user