From c603bd55c1cb9a2110334f008c7ac34d57684f5c Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Thu, 18 Jul 2024 12:04:33 +0900 Subject: [PATCH] Enable fontDir and add note about how to detect font family --- nixos/font.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nixos/font.nix b/nixos/font.nix index c0e1b492..4b226c3f 100644 --- a/nixos/font.nix +++ b/nixos/font.nix @@ -6,6 +6,15 @@ { fonts = { enableDefaultPackages = true; + + # Provide dir for easy useable fc-query + # For getting font family name + # ```bash + # cd /nix/var/nix/profiles/system/sw/share/X11/fonts + # fc-query IBMPlexSansJP-Regular.otf | grep '^\s\+family:' | cut -d'"' -f2 + # ``` + fontDir.enable = true; + packages = with pkgs; [ ibm-plex plemoljp-nf @@ -24,6 +33,7 @@ source-han-serif-japanese ]; + # Same as home-manager module? # https://github.com/nix-community/home-manager/issues/605 # https://github.com/nix-community/home-manager/blob/release-24.05/modules/misc/fontconfig.nix fontconfig = {