No description
- Nix 73.2%
- Just 16.9%
- Typst 9.9%
- 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> |
||
|---|---|---|
| .forgejo | ||
| nix | ||
| .envrc | ||
| .gitignore | ||
| .typstfmt.toml | ||
| flake.nix | ||
| justfile | ||
| LICENSE | ||
| main.typ | ||
| README.md | ||
$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.