at 23.05-pre 729 B view raw
1{ lib, pkgs, config, ...}: 2with lib; 3 4{ 5 options.hardware.video.hidpi.enable = mkEnableOption (lib.mdDoc "Font/DPI configuration optimized for HiDPI displays"); 6 7 config = mkIf config.hardware.video.hidpi.enable { 8 console.font = lib.mkDefault "${pkgs.terminus_font}/share/consolefonts/ter-v32n.psf.gz"; 9 10 # Needed when typing in passwords for full disk encryption 11 console.earlySetup = mkDefault true; 12 boot.loader.systemd-boot.consoleMode = mkDefault "1"; 13 14 15 # Grayscale anti-aliasing for fonts 16 fonts.fontconfig.antialias = mkDefault true; 17 fonts.fontconfig.subpixel = { 18 rgba = mkDefault "none"; 19 lcdfilter = mkDefault "none"; 20 }; 21 22 # TODO Find reasonable defaults X11 & wayland 23 }; 24}