NixOS/nixfmt
The official formatter for Nix code observed · 2026-08-28
Health v2 · maintenance only
93/100
- Activity 99
- Release rhythm 80
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 50.0
- age_days: 2953
- days_rel: 57
- days_push: 8
- n_releases_24m: 7
Adoption not part of the score
1593 stars · 77 forks observed · 2026-08-28
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-08-28 · 7e16a1e7ac8a
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| NixOS/nixfmt | main | 93 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem