Posted on June 29, 2016

Since the new nixpkg/nixos tex system is not that well documented, here is what I had to do to get my optics express paper to compile on nixos:

environment.systemPackages = with pkgs; [ (texlive.combine { inherit (texlive) scheme-basic symbol xkeyval collection-fontsrecommended collection-fontsextra newtx fontaxes subfigure todonotes xcolor cm-super; })

The new system lets you depend on specific packages (rather than just downloading all off texlive) which is nominally a good thing, but it does mean you need to know all the right packages to depend on. Hopefully this post will save someone the hour or two it too me tracking all this down.