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 /class | |
| download | templates-f2c4d486c0e5763b9fcd92987128df262233c1a9.tar templates-f2c4d486c0e5763b9fcd92987128df262233c1a9.tar.gz templates-f2c4d486c0e5763b9fcd92987128df262233c1a9.tar.bz2 templates-f2c4d486c0e5763b9fcd92987128df262233c1a9.tar.lz templates-f2c4d486c0e5763b9fcd92987128df262233c1a9.tar.xz templates-f2c4d486c0e5763b9fcd92987128df262233c1a9.tar.zst templates-f2c4d486c0e5763b9fcd92987128df262233c1a9.zip | |
Diffstat (limited to 'class')
| -rw-r--r-- | class/.gitignore | 5 | ||||
| -rw-r--r-- | class/flake.nix | 31 |
2 files changed, 36 insertions, 0 deletions
diff --git a/class/.gitignore b/class/.gitignore new file mode 100644 index 0000000..8c9f564 --- /dev/null +++ b/class/.gitignore @@ -0,0 +1,5 @@ +lectures/*.pdf +result +.direnv +.latex-build +*/.latex-build diff --git a/class/flake.nix b/class/flake.nix new file mode 100644 index 0000000..fa9cc16 --- /dev/null +++ b/class/flake.nix @@ -0,0 +1,31 @@ +{ + description = "TeX project"; + + 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, ... }: + flake-parts.lib.mkFlake { inherit self inputs; } { + systems = import inputs.systems; + + imports = [ inputs.latex-utils.modules.flake.latex-utils ]; + + latex-utils = { + enableVSCode = false; + extraTexPackages = [ "scheme-full" ]; + }; + + perSystem = + { pkgs, config, ... }: + { + + devShells.default = pkgs.mkShellNoCC { inputsFrom = [ config.latex-utils.unifiedTexShell ]; }; + + }; + }; +} |
