mirror of
https://github.com/nikdoof/nixos-config.git
synced 2025-12-11 16:52:24 +00:00
Fix fonts
This commit is contained in:
@@ -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 =
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user