Getting Started
First, install Nix:
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
Make sure nix-command
and flakes
are enabled:
~/.config/nix/nix.conf
experimental-features = nix-command flakes
Finally, you can initialize a flake from the default template:
nix flake init --refresh -t github:loqusion/typix
Alternatively, you can use a template demonstrating Typst packages usage:
nix flake init --refresh -t 'github:loqusion/typix#with-typst-packages'
Here are some commands you can run from any template:
nix run .#watch
— watch the input files and recompile on changesnix run .#build
— compile and copy the output to the current directory
For more info, see nix run --help
.