What problem does it solve? Nix codebases accumulate syntax errors, anti-patterns, and unused bindings that are hard to catch manually, and configuring a consistent linting and formatting pipeline across a flake is tedious and error-prone. ## Core Features & Use Cases - Unified formatting and linting: Configure treefmt-nix to combine nixfmt, statix, and deadnix into a single formatter and flake check. - Anti-pattern detection: Identify and auto-fix common Nix issues like bool comparisons, eta reduction, manual inherit, and legacy let syntax with statix. - Dead code removal: Find and remove unused bindings with deadnix while avoiding common false positives like self in flake outputs. - Use Case: Before committing changes to a NixOS or home-manager flake, run nix fmt and nix flake check to verify formatting, lint rules, and module evaluation all pass. ## Quick Start Ask the assistant to set up treefmt-nix with nixfmt, statix, and deadnix in your flake and validate all Nix files in the repository.