1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-26 21:09:42 +01:00

gpd/pocket-3: Only workaround hidpi module bug on NixOS < 22.11

Assumes NixOS/nixpkgs#194594 gets merged.
This commit is contained in:
nicoo 2022-10-05 16:41:29 +02:00
parent de2ea2beee
commit 1c535dc049

View file

@ -1,5 +1,5 @@
{ lib, pkgs, ... }: { lib, pkgs, ... }:
let inherit (lib) mkDefault; let inherit (lib) mkDefault mkIf;
in in
{ {
imports = [ imports = [
@ -28,8 +28,9 @@ in
# The OLED display has √(1920² + 1200²) px / 8in ≃ 283 dpi # 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. # 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 = mkDefault false; hinting.enable = mkDefault false;
antialias = false; #TODO(nicoo): Fix nixpkgs' HiDPI module antialias = mkIf (lib.versionOlder (lib.versions.majorMinor lib.version) "22.11") false;
}; };
# More HiDPI settings # More HiDPI settings