Font OTF files missing for LuaTex despite adding the packages

I am trying to compile a document in TEXstudio with the LuaTex engine. For this document, I need font-awesome. I’ve entered this font package in my system packages, system font packages, and home-manager packages. Even though I’ve put this package to be installed in these places, the OTF files and TTF files are entirely absent from the system. What am I doing wrong and how do I fix it?

home.nix: debian Pastezone
configuration.nix: debian Pastezone

Hi. It would be easier to find out what went wrong if you could share a short example of the LaTeX file you’re trying to compile.

If you are talking about the fontawesome5 package, I’ve created a flake for that and it’s working, so it may be caused by misconfiguration in your LaTeX file.

1 Like

Sure. Sorry for the late reply. Found the issue, and it was not the most obvious. Or super obvious, depending on your familiarity with a lot.

From resume.tex:

...

% Caused here
\usepackage{fontspec}
\defaultfontfeatures{Path = /home/anadon/.local/share/fonts/NerdFonts/}

...

\begin{document}

%Bug emerged here
\makecvtitle

This is from a resume template that I’ve been nurturing for many years. Looks like a past bugfix caused the bug.

Well, glad you’ve figured it out! Feel free to mark the post as solved as described here.
From my experiences though, if you use Nix (especially when building with flakes) then it’s typically not required (or reasonable) to hard-code absolute paths because they are kind of like global states.

1 Like