Merge pull request #194594 from nbraud/hidpi
nixos/hidpi: Harmonise default with documented recommendations
This commit is contained in:
@@ -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)
|
[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.
|
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.
|
- `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.
|
- `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.
|
||||||
|
|||||||
@@ -12,11 +12,12 @@ with lib;
|
|||||||
boot.loader.systemd-boot.consoleMode = mkDefault "1";
|
boot.loader.systemd-boot.consoleMode = mkDefault "1";
|
||||||
|
|
||||||
|
|
||||||
# Grayscale anti-aliasing for fonts
|
# Disable font anti-aliasing, hinting, and sub-pixel rendering by default
|
||||||
fonts.fontconfig.antialias = mkDefault true;
|
# See recommendations in fonts/fontconfig.nix
|
||||||
fonts.fontconfig.subpixel = {
|
fonts.fontconfig = {
|
||||||
rgba = mkDefault "none";
|
antialias = mkDefault false;
|
||||||
lcdfilter = mkDefault "none";
|
hinting.enable = mkDefault false;
|
||||||
|
subpixel.lcdfilter = mkDefault "none";
|
||||||
};
|
};
|
||||||
|
|
||||||
# TODO Find reasonable defaults X11 & wayland
|
# TODO Find reasonable defaults X11 & wayland
|
||||||
|
|||||||
Reference in New Issue
Block a user