Skip to content

Commit

Permalink
Enable fontDir and add note about how to detect font family
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Jul 18, 2024
1 parent 8f2c9ad commit c603bd5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions nixos/font.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 = {
Expand Down

0 comments on commit c603bd5

Please sign in to comment.