When I try to process this file with pdflatex, processing stops with
! LaTeX Error: File `tikz.sty' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)
Enter file name:
My environment.systempackages includes both texlive.combined.scheme-full and tikzit. Am I simply not including the right package, or is there more to it than that?
[root@pingala:~]# nixos-rebuild switch
building Nix...
building the system configuration...
error: attribute 'tikz' missing, at /etc/nixos/configuration.nix:122:40
(use '--show-trace' to show detailed location information)
Sorry, I used the package name you were using, I didn’t pay much attention.
If you want to install all of LaTeX (which is huge, like 5 GB) then you should use:
pkgs.texlive.combined.scheme-full
Then you will have all packages available.
But I don’t think that’s necessary, you can install a smaller set and then add the missing packages with the texlive.combine function that I mentioned:
Is it possible that you add a version of TeXLive that does not include pgf to the environment somewhere else in your configuration?
If you run which -a pdflatex, it should only return one line. Otherwise there are multiple TeXLive packages in the environment, one of them should be the one including tikz.sty (you can try running the pdflatex binaries that which returns, one should successfully compile the file).
Also, according to the Wiki, scheme-full “Contains every TeX Live package”, so there is no need to combine it with pgf, it should work as-is. Though using the full scheme might have a negative impact on evaluation performance and memory usage, which is why I personally only use TeXLive with nix-shell.