From f2c4d486c0e5763b9fcd92987128df262233c1a9 Mon Sep 17 00:00:00 2001 From: Chris Wells Date: Wed, 25 Feb 2026 10:39:15 -0600 Subject: Basic templates so far --- class/.gitignore | 5 +++++ class/flake.nix | 31 +++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 class/.gitignore create mode 100644 class/flake.nix (limited to 'class') 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 ]; }; + + }; + }; +} -- cgit v1.2.3