From 85f1c033c4a489e3e38cd1af0c0495b273f2e727 Mon Sep 17 00:00:00 2001 From: Chris Wells Date: Sun, 22 Feb 2026 22:30:47 -0600 Subject: Initial commit --- template/flake.nix | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 template/flake.nix (limited to 'template') diff --git a/template/flake.nix b/template/flake.nix new file mode 100644 index 0000000..498cda1 --- /dev/null +++ b/template/flake.nix @@ -0,0 +1,39 @@ +{ + description = "TeX project"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs"; + flake-parts.url = "github:hercules-ci/flake-parts"; + tex-shell.url = "git://git.mathematicaster.org/tex-shell"; + systems.url = "github:nix-systems/default"; + }; + + outputs = inputs @ { self, flake-parts, ... }: flake-parts.lib.mkFlake { inherit self inputs; } { + systems = import inputs.systems; + + imports = [ + inputs.tex-shell.flakeModules.default + ]; + + perSystem = { pkgs, config, ... }: { + + texShell = { + scheme = pkgs.texliveSmall; + latexmk = { + enable = true; + rc = /* perl */ '' + $out_dir = '.latex-build'; + $pdf_mode = 1; + $pdflatex = 'pdflatex -interaction=nonstopmode %O %S'; + ''; + }; + }; + + devShells.default = pkgs.mkShell { + inputsFrom = [ + config.devShells.texShell + ]; + }; + }; + }; +} -- cgit v1.2.3