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

So would the equivalent for someone using a bash shell be export FONTCONFIG_FILE ${pkgs.fontconfig.out}/etc/fonts/fonts.conf?

What worked directly for me in my mkShell was:

shellHook = ''
      export FONTCONFIG_FILE=${pkgs.fontconfig.out}/etc/fonts/fonts.conf
      source ~/.bashrc
    ''

But now my GUI emacs is broken… :frowning: Gotta figure out how to help it find inconsolata 14.

1 Like