aboutsummaryrefslogtreecommitdiff
path: root/tex/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'tex/flake.nix')
-rw-r--r--tex/flake.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/tex/flake.nix b/tex/flake.nix
new file mode 100644
index 0000000..c5d9ed9
--- /dev/null
+++ b/tex/flake.nix
@@ -0,0 +1,34 @@
+{
+ 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 ];
+ nativeBuildInputs = [ ];
+ };
+
+ };
+ };
+}