Open
Description
I have a very basic shell.nix which I use in directories in which I write Latex. The flake also loads VSCode, but I generally prefer using neovim (nixvim), which is installed system-wide via home manager (NixOS/current).
When I need to add an additional package, say "verse", in the shell, nvim complains that it cannot find verse.sty. But if I work with it in VSCode there is no problem, which is why I keep in in the shell.
How can I get nixvim to "see" the modules installed by the flake? I've pasted it below.
Thank you.
let
pkgs = import <nixpkgs> { config.allowUnfree = true; };
myvscode = pkgs.vscode-with-extensions.override {
vscodeExtensions = (with pkgs.vscode-extensions; [
equinusocio.vsc-material-theme
equinusocio.vsc-material-theme-icons
james-yu.latex-workshop
vscodevim.vim
valentjn.vscode-ltex
]);
};
mytex = pkgs.texliveMedium.withPackages (ps: [ ps.mathdesign
ps.verse
ps.quotchap
ps.biblatex]);
in
pkgs.mkShell {
buildInputs = [ myvscode mytex ];
}