alejandra
« Back to VersTracker
Description:
Command-line tool for formatting Nix Code
Type: Formula  |  Latest Version: 4.0.0@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: nix formatter developer-tools rust nixos
Install: brew install alejandra
About:
Alejandra is an opinionated and extremely fast code formatter for the Nix language. It ensures consistent and readable Nix code by enforcing a specific style guide, which helps teams maintain clean and uniform codebases. The tool is written in Rust, providing excellent performance and reliability for large Nix projects.
Key Features:
  • Extremely fast formatting written in Rust
  • Opinionated style for consistency
  • Supports formatting NixOS configurations and flakes
  • Easy integration with CI/CD pipelines
Use Cases:
  • Enforcing a consistent coding style across a team's Nix projects
  • Automating Nix code formatting in pre-commit hooks or CI pipelines
  • Improving readability of complex Nix expressions in flakes or modules
Alternatives:
  • nixpkgs-fmt – Alejandra is opinionated and focuses on speed, while nixpkgs-fmt offers more configuration options.
  • nixfmt – Alejandra is generally considered faster and has a more distinct, enforced style.
License: Unlicense
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, arm64_ventura, sonoma, ventura, arm64_linux, x86_64_linux
Version History
Detected Version Rev Change Commit
Sep 13, 2025 11:25am 0 VERSION_BUMP e160d40c