aboutsummaryrefslogtreecommitdiff
path: root/template/flake.nix
diff options
context:
space:
mode:
authorChris Wells <chris@mathematicaster.org>2026-02-22 22:30:47 -0600
committerChris Wells <chris@mathematicaster.org>2026-02-22 22:30:47 -0600
commit85f1c033c4a489e3e38cd1af0c0495b273f2e727 (patch)
tree0e6cfd5a693601e19266ba8d4da835b5b9e48521 /template/flake.nix
downloadtex-shell-85f1c033c4a489e3e38cd1af0c0495b273f2e727.tar
tex-shell-85f1c033c4a489e3e38cd1af0c0495b273f2e727.tar.gz
tex-shell-85f1c033c4a489e3e38cd1af0c0495b273f2e727.tar.bz2
tex-shell-85f1c033c4a489e3e38cd1af0c0495b273f2e727.tar.lz
tex-shell-85f1c033c4a489e3e38cd1af0c0495b273f2e727.tar.xz
tex-shell-85f1c033c4a489e3e38cd1af0c0495b273f2e727.tar.zst
tex-shell-85f1c033c4a489e3e38cd1af0c0495b273f2e727.zip
Initial commit
Diffstat (limited to 'template/flake.nix')
-rw-r--r--template/flake.nix39
1 files changed, 39 insertions, 0 deletions
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
+ ];
+ };
+ };
+ };
+}