diff --git a/nixos/doc/manual/release-notes/rl-2305.section.md b/nixos/doc/manual/release-notes/rl-2305.section.md index d80d3556e377..082c03a69e3c 100644 --- a/nixos/doc/manual/release-notes/rl-2305.section.md +++ b/nixos/doc/manual/release-notes/rl-2305.section.md @@ -238,6 +238,11 @@ In addition to numerous new and upgraded packages, this release has the followin [headscale's example configuration](https://github.com/juanfont/headscale/blob/main/config-example.yaml) can be directly written as attribute-set in Nix within this option. +- `hardware.video.hidpi` now provides defaults that are consistent with `fontconfig`'s documentation: + - antialiasing and font hinting are disabled, as they have no visible effects at high pixel densities; + - subpixel order isn't set: it was irrelevant with the above disabled, and the module *cannot* know the correct + setting for the user's screen. + - `nixos/lib/make-disk-image.nix` can now mutate EFI variables, run user-provided EFI firmware or variable templates. This is now extensively documented in the NixOS manual. - `services.grafana` listens only on localhost by default again. This was changed to upstreams default of `0.0.0.0` by accident in the freeform setting conversion. diff --git a/nixos/modules/hardware/video/hidpi.nix b/nixos/modules/hardware/video/hidpi.nix index 8c8f8bc0c265..fe63784e57f5 100644 --- a/nixos/modules/hardware/video/hidpi.nix +++ b/nixos/modules/hardware/video/hidpi.nix @@ -12,11 +12,12 @@ with lib; boot.loader.systemd-boot.consoleMode = mkDefault "1"; - # Grayscale anti-aliasing for fonts - fonts.fontconfig.antialias = mkDefault true; - fonts.fontconfig.subpixel = { - rgba = mkDefault "none"; - lcdfilter = mkDefault "none"; + # Disable font anti-aliasing, hinting, and sub-pixel rendering by default + # See recommendations in fonts/fontconfig.nix + fonts.fontconfig = { + antialias = mkDefault false; + hinting.enable = mkDefault false; + subpixel.lcdfilter = mkDefault "none"; }; # TODO Find reasonable defaults X11 & wayland