From 5486b0ed4a81a14bf7fe790aa51f3a9cb94497d6 Mon Sep 17 00:00:00 2001 From: Leander Scherer Date: Sun, 17 May 2026 10:40:18 +0200 Subject: chore(font): configure stem darkening and disable hinting --- modules/hosts/adam/flake-parts.nix | 1 + modules/system/font.nix | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 modules/system/font.nix diff --git a/modules/hosts/adam/flake-parts.nix b/modules/hosts/adam/flake-parts.nix index dc9654e..69b8715 100644 --- a/modules/hosts/adam/flake-parts.nix +++ b/modules/hosts/adam/flake-parts.nix @@ -14,6 +14,7 @@ sway dns audio + font bluetooth mullvad-vpn steam diff --git a/modules/system/font.nix b/modules/system/font.nix new file mode 100644 index 0000000..b9ea6c9 --- /dev/null +++ b/modules/system/font.nix @@ -0,0 +1,30 @@ +{ + flake.modules.nixos.font = + { pkgs, ... }: + { + fonts = { + enableDefaultPackages = true; + packages = with pkgs; [ + noto-fonts + noto-fonts-cjk-sans + liberation_ttf + inter + jetbrains-mono + ]; + + fontconfig = { + enable = true; + antialias = true; + hinting = { + enable = true; + autohint = false; + style = "slight"; + }; + subpixel = { + rgba = "none"; + }; + useEmbeddedBitmaps = false; + }; + }; + }; +} -- cgit v1.3.1