about summary refs log tree commit diff
path: root/nixos/modules/hardware
diff options
context:
space:
mode:
authorChristian Kögler <ck3d@gmx.de>2022-08-19 10:37:30 +0200
committerGitHub <noreply@github.com>2022-08-19 10:37:30 +0200
commitb055aadc3d69aa1183d4c88f904c6bda096c9ae5 (patch)
tree9de47cdaded5d813a6dee957a8884308575c4b44 /nixos/modules/hardware
parentf99c37f463fbfcec612ee1491a1b0c4afab5e407 (diff)
parentad735b87e4607f535586b329d9030fbf6974f38b (diff)
Merge pull request #157997 from kirelagin/grayscale-antialiasing
hidpi: Use gray-scale antialiasing for fonts
Diffstat (limited to 'nixos/modules/hardware')
-rw-r--r--nixos/modules/hardware/video/hidpi.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/nixos/modules/hardware/video/hidpi.nix b/nixos/modules/hardware/video/hidpi.nix
index ac72b652504ec..1cb4470f1b3a7 100644
--- a/nixos/modules/hardware/video/hidpi.nix
+++ b/nixos/modules/hardware/video/hidpi.nix
@@ -11,6 +11,14 @@ with lib;
     console.earlySetup = mkDefault true;
     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";
+    };
+
     # TODO Find reasonable defaults X11 & wayland
   };
 }