diff --git a/hardware/p8-laptop.nix b/hardware/p8-laptop.nix index 24c2d5d..f99faff 100644 --- a/hardware/p8-laptop.nix +++ b/hardware/p8-laptop.nix @@ -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 = [