> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trunk.io/llms.txt
> Use this file to discover all available pages before exploring further.

# nixpkgs-fmt

> nixpkgs-fmt is a linter for Nix

[**nixpkgs-fmt**](https://github.com/nix-community/nixpkgs-fmt) is a linter for Nix.

You can enable the nixpkgs-fmt linter with:

```shell theme={null}
trunk check enable nixpkgs-fmt
```

## Auto Enabling

nixpkgs-fmt will be auto-enabled if any *Nix* files are present.

## Links

* [nixpkgs-fmt site](https://github.com/nix-community/nixpkgs-fmt)
* nixpkgs-fmt Trunk Code Quality [integration source](https://github.com/trunk-io/plugins/tree/main/linters/nixpkgs-fmt)
* Trunk Code Quality's [open source plugins repo](https://github.com/trunk-io/plugins/tree/main)
