Skip to content

johnyob/typix

This branch is 3 commits behind loqusion/typix:main.

Folders and files

NameName
Last commit message
Last commit date
Feb 8, 2025
Mar 7, 2025
Mar 10, 2025
Mar 10, 2025
Jan 28, 2025
Dec 27, 2023
Nov 11, 2024
Jan 3, 2024
Jan 7, 2024
Jan 7, 2024
Dec 24, 2023
Dec 5, 2024
Mar 22, 2025
Mar 10, 2025
Feb 29, 2024
Feb 29, 2024

Repository files navigation

Typix Logo
Typix

FlakeHub version

Typix aims to make it easier to use Nix in Typst projects.

  • Dependency management: supports arbitrary dependencies including fonts, images, and data
  • Reproducible: via a hermetically sealed build environment
  • Extensible: fully compatible with Typst packages

Features

  • Automatically fetch dependencies and compile in a single command (nix run .#build)
  • Watch input files and recompile on changes (nix run .#watch)
  • Set up a shell environment with all dependencies made available via environment variables and symlinks
  • Extensible via mkTypstDerivation
  • Support for dependencies such as fonts, images, and data

Typst packages are not officially supported, however there is a workaround.

Getting Started

After installing Nix and enabling flakes, you can initialize a flake from the default template:

nix flake init -t github:loqusion/typix

Here are some commands you can run from the default template:

  • nix run .#watch — watch the input files and recompile on changes
  • nix run .#build — compile and copy the output to the current directory

For more information, check out the docs.

About

Deterministic Typst compilation with Nix

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Nix 89.0%
  • Python 8.8%
  • Shell 1.5%
  • Other 0.7%