Fix fonts

This commit is contained in:
2024-03-27 22:55:37 +00:00
parent e94639bc99
commit 74c88642af

View File

@@ -15,6 +15,16 @@
];
boot.kernelPackages = pkgs.linuxPackages_latest;
# Fix the font rendering
fonts.fontconfig = {
subpixel.rgba = "vbgr"; # Pixel order for rotated screen
# The OLED display has √(1920² + 1200²) px / 8in ≃ 283 dpi
# Per the documentation, antialiasing, hinting, etc. have no visible effect at such high pixel densities anyhow.
# Set manually, as the hiDPI module had incorrect settings prior to NixOS 22.11; see nixpkgs#194594.
hinting.enable = false;
};
# Provide rotation to X/Wayland
services.xserver.xrandrHeads =
[