No description
  • Nix 73.2%
  • Just 16.9%
  • Typst 9.9%
Find a file Use this template
LaurinL0801 2bfecb7b13 Set up Forgejo template, typstyle hook and justfile
- Add .forgejo/template expanding repo variables in README, flake.nix
  and main.typ
- Replace duplicated LaTeX .gitignore with a lean Typst/Nix one
- Use typstyle instead of rustfmt as pre-commit hook and install the
  hooks from the dev shell
- Add justfile with build, watch, fmt, check and clean recipes
- Fix watch app passing unsupported arguments to watchTypstProject

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 14:43:11 +01:00
.forgejo Set up Forgejo template, typstyle hook and justfile 2026-10-26 14:43:11 +01:00
nix Set up Forgejo template, typstyle hook and justfile 2026-10-26 14:43:11 +01:00
.envrc Init template 2026-10-26 14:37:23 +01:00
.gitignore Set up Forgejo template, typstyle hook and justfile 2026-10-26 14:43:11 +01:00
.typstfmt.toml Init template 2026-10-26 14:37:23 +01:00
flake.nix Set up Forgejo template, typstyle hook and justfile 2026-10-26 14:43:11 +01:00
justfile Set up Forgejo template, typstyle hook and justfile 2026-10-26 14:43:11 +01:00
LICENSE Initial commit 2026-10-26 14:35:57 +01:00
main.typ Set up Forgejo template, typstyle hook and justfile 2026-10-26 14:43:11 +01:00
README.md Set up Forgejo template, typstyle hook and justfile 2026-10-26 14:43:11 +01:00

$REPO_NAME

$REPO_DESCRIPTION

Usage

Requires Nix with flakes enabled. With direnv the dev shell is loaded automatically (direnv allow), otherwise enter it with nix develop.

Command Description
just watch Recompile main.typ on every change
just build Compile main.typ to main.pdf
just build-nix Build the PDF in the Nix sandbox (result/)
just fmt Format all Typst and Nix files
just check Run nix flake check (formatting hooks)
just clean Remove build output

Entering the dev shell installs the pre-commit hooks (alejandra, typstyle).

Typst packages must be pinned in nix/typst.nix (unstable_typstPackages) so that the sandboxed build can fetch them.