Fonts in nix-installed packages on a non-NixOS system

I use fish, so you’ll have to adapt this to whichever shell you use, but this works for me:

  set --global --export FONTCONFIG_FILE ${pkgs.fontconfig.out}/etc/fonts/fonts.conf

EDIT: (add that to your home-manager’d shell config)

2 Likes