17 lines
298 B
Markdown

# 16-formatter-and-checks
This example shows `formatter.<system>` and `checks.<system>.*`.
It includes:
- a `formatter` output pointing at `nixfmt`, and
- a check that uses that formatter on a file in the example.
Useful commands:
```bash
nix fmt sample.nix
nix flake show
nix flake check
```