From 1c535dc0497f7f4f92a562f8d033abf944bfc3e2 Mon Sep 17 00:00:00 2001 From: nicoo Date: Wed, 5 Oct 2022 16:41:29 +0200 Subject: [PATCH] gpd/pocket-3: Only workaround hidpi module bug on NixOS < 22.11 Assumes NixOS/nixpkgs#194594 gets merged. --- gpd/pocket-3/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gpd/pocket-3/default.nix b/gpd/pocket-3/default.nix index d2f4bf2..59de138 100644 --- a/gpd/pocket-3/default.nix +++ b/gpd/pocket-3/default.nix @@ -1,5 +1,5 @@ { lib, pkgs, ... }: -let inherit (lib) mkDefault; +let inherit (lib) mkDefault mkIf; in { imports = [ @@ -28,8 +28,9 @@ in # 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 = 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