diff --git a/.config/linux/flake/template/Latex.nix b/.config/linux/flake/template/Latex.nix new file mode 100644 index 0000000..f7d96d9 --- /dev/null +++ b/.config/linux/flake/template/Latex.nix @@ -0,0 +1,54 @@ +{ + description = "LuaLaTeX build env."; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + }; + + outputs = { self, nixpkgs } @inputs: + let + system = "x86_64-linux"; + lib = nixpkgs.lib; + pkgs = nixpkgs.legacyPackages.${system}; + tex = (pkgs.texlive.combine { + inherit (pkgs.texlive) scheme-basic + amsmath + babel + capt-of + catchfile + collection-fontsextra + cyrillic + dvipng + dvisvgm + environ + etoolbox + fancyhdr + fontspec + geometry + hyperref + luacode + luatexbase + montserrat + parskip + pgf + tcolorbox + tocloft + ulem + wrapfig + xcolor; + + #(setq org-latex-compiler "lualatex") + #(setq org-preview-latex-default-process 'dvisvgm) + }); + in { + devShells.${system} = { + default = pkgs.mkShell rec { + nativeBuildInputs = with pkgs; [ + gnumake + tex + ]; + buildInputs = with pkgs; []; + }; + }; + }; +} diff --git a/.config/linux/flake/template/TODO_Lualatex.nix b/.config/linux/flake/template/TODO_Lualatex.nix deleted file mode 100644 index 7aedb4d..0000000 --- a/.config/linux/flake/template/TODO_Lualatex.nix +++ /dev/null @@ -1 +0,0 @@ -# TODO: Copy something from Android.nix