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 -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 changesnix run .#build
— compile and copy the output to the current directory
For more info, see nix run --help
.