diff options
| author | Chris Wells <chris@mathematicaster.org> | 2026-02-25 10:39:15 -0600 |
|---|---|---|
| committer | Chris Wells <chris@mathematicaster.org> | 2026-02-25 10:39:15 -0600 |
| commit | f2c4d486c0e5763b9fcd92987128df262233c1a9 (patch) | |
| tree | a78ac2fcd93b60daa80eb12fc8928f251377c35f /paper | |
| download | templates-master.tar templates-master.tar.gz templates-master.tar.bz2 templates-master.tar.lz templates-master.tar.xz templates-master.tar.zst templates-master.zip | |
Diffstat (limited to 'paper')
| -rw-r--r-- | paper/.envrc | 1 | ||||
| -rw-r--r-- | paper/.gitignore | 3 | ||||
| -rw-r--r-- | paper/flake.nix | 44 |
3 files changed, 48 insertions, 0 deletions
diff --git a/paper/.envrc b/paper/.envrc new file mode 100644 index 0000000..a5dbbcb --- /dev/null +++ b/paper/.envrc @@ -0,0 +1 @@ +use flake . diff --git a/paper/.gitignore b/paper/.gitignore new file mode 100644 index 0000000..3a2e38f --- /dev/null +++ b/paper/.gitignore @@ -0,0 +1,3 @@ +.latex-build +.direnv +result diff --git a/paper/flake.nix b/paper/flake.nix new file mode 100644 index 0000000..db9d50f --- /dev/null +++ b/paper/flake.nix @@ -0,0 +1,44 @@ +{ + description = "TeX paper"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs"; + flake-parts.url = "github:hercules-ci/flake-parts"; + latex-utils.url = "github:jmmaloney4/latex-utils"; + systems.url = "github:nix-systems/default"; + }; + + outputs = + inputs@{ + self, + flake-parts, + latex-utils, + ... + }: + flake-parts.lib.mkFlake { inherit self inputs; } { + systems = import inputs.systems; + + imports = [ latex-utils.modules.flake.latex-utils ]; + + latex-utils = { + enableVSCode = false; + documents = [ + { + name = "main.pdf"; + src = ./.; + extraTexPackages = [ ]; + } + ]; + }; + + perSystem = + { config, pkgs, ... }: + { + devShells.default = pkgs.mkShellNoCC { + inputsFrom = [ config.latex-utils.unifiedTexShell ]; + nativeBuildInputs = [ ]; + }; + }; + + }; +} |
