Merge pull request #194594 from nbraud/hidpi

nixos/hidpi: Harmonise default with documented recommendations
This commit is contained in:
Ryan Lahfa 2023-03-19 19:22:40 +01:00 committed by GitHub
commit aa85df4561
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 5 deletions

View File

@ -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.

View File

@ -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