NixOS/nixfmt
Some data may be outdated — see provenance labels.
The official formatter for Nix code observed · 2026-09-23
Health v2 · maintenance only
92/100
- Activity 96
- Release rhythm 82
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 64
- age_days: 3001
- days_rel: 40
- days_push: 28
- n_releases_24m: 8
Adoption not part of the score
1611 stars · 78 forks observed · 2026-09-23
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Nixfmt is the official formatter for the Nix language, implementing the standard Nix format. It is a command-line tool written in Haskell, maintained by the Nix formatting team, and integrates with editors and treefmt.
Use cases
- format nix code automatically
- enforce consistent nix formatting in a project
- integrate nix formatting into neovim or vscode
- format nix files with treefmt
- standardize code style across a nix codebase
When to choose
- you write Nix code and want the official standard format
- you need editor integration for formatting Nix files
- you want consistent formatting enforced across a NixOS or nix project
When to avoid
- you need a formatter for languages other than Nix
- you prefer a different Nix formatting style such as alejandra or nixpkgs-fmt
Facets
cli-tool · maturity stable
formatter cli developer-tools developer-tools programming-languages cross-platform cli nix code-formatting haskell nixos command-line linux macos
1 source
- readme: https://github.com/NixOS/nixfmt · fetched 2026-09-23 · 7e16a1e7ac8a
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| NixOS/nixfmt | main | 92 |
For agents
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem