Yet another Nix CLI helper. [Maintainers=@NotAShelf, @faukah]
3k
Stars
119
Forks
76
Open issues
30
Contributors
AI Analysis
NH is a unified CLI helper for the Nix ecosystem (NixOS, Home Manager, Nix Darwin) that consolidates and reimplements common commands with improved ergonomics, speed, and visual presentation. It serves developers and system administrators managing declarative Linux/macOS systems via Nix, particularly those seeking a more cohesive interface than individual Nix tools. Not for users outside the Nix ecosystem or those satisfied with native Nix tooling.
Inferred from signals mentioned in the README (tests, CI, type safety) — not a review of the actual code.
AI's overall editorial judgment — not an average of the bars above, can weigh other factors too.
Rust CLI wrapper for NixOS/Home Manager operations with unified interface and visual polish
NH is a Rust-based command-line helper consolidating NixOS, Home Manager, and Nix-Darwin workflows into a single, cohesive interface. It reimplements standard tools (nixos-rebuild, home-manager, nix-collect-garbage) with improved UX, faster search via Elasticsearch, build-tree visualization, and enhanced garbage collection. Built by the nix-community for users seeking better ergonomics and performance over the default Nix CLI tooling. Adoption appears concentrated within the active NixOS user base rather than mainstream deployment.
Initiated in February 2022 during a period of growing Nix ecosystem adoption and tooling maturation. Emerged as a response to fragmented CLI interfaces across multiple Nix-family tools and desire for faster operations. Maintained by @NotAShelf and @faukah within nix-community, packaged in nixpkgs stable and unstable branches.
Steady adoption within NixOS community circles, reaching ~3k GitHub stars. Recent activity shows consistent maintenance (latest push 2026-07-06) and modest recent growth (31 stars in last 7 days suggests organic but not explosive adoption). Growth appears driven by word-of-mouth within NixOS circles and inclusion in nixpkgs rather than viral adoption or major ecosystem shifts.
Adoption not verified from provided metadata. Project is packaged in nixpkgs (indicating some institutional endorsement), but no GitHub Issues/discussions excerpts, no public testimonials, no documented deployments at scale, and no metrics on active user base are included. Appears to be used within NixOS practitioner communities, but scope and scale of real-world deployment cannot be confirmed.
Appears to be a modular Rust CLI application structured around subcommands (os, home, darwin, search, clean). README indicates Rust chosen explicitly for safety, correctness, and performance over shell-based predecessors. Design emphasizes extensibility for rapid feature addition. Implementation details not verifiable from metadata alone.
Not documented in README. CI badge present (GitHub Actions build workflow), but no mention of test coverage percentages, test strategy, or test visibility in truncated README.
Active maintenance confirmed by push date of 2026-07-06 (same as evaluation date). Two named maintainers (@NotAShelf, @faukah). Packaged in nixpkgs stable/unstable with backporting policy. Dependency status badge shown, suggesting regular dependency updates. No evidence of stagnation; appears to be actively developed with sane release discipline.
ADOPT IF: You are an active NixOS/Home Manager user frustrated with fragmented CLI interfaces, slow nix search, or lack of safe garbage collection; you value visual polish and improved ergonomics; your team already standardizes on Nix tooling. AVOID IF: You require extensive third-party ecosystem integration, depend on nixos-rebuild scripting contracts that NH may not preserve, or operate in risk-averse environments where tooling must be stable for years without breaking changes. MONITOR IF: You are evaluating Nix tooling for a new project and want to track whether NH reaches parity with canonical tools, or whether community consensus shifts toward it as a recommended starting point.
Independent dimensions
Mainstream potential
3/10
Technical importance
6/10
Adoption evidence
4/10
- Adoption concentrated within nix-community; limited evidence of enterprise or non-enthusiast use, risking abandonment if maintainers lose interest.
- Rust reimplementation of shell-based tools introduces maintenance burden; breaking changes in nixpkgs or NixOS could require rapid adaptation.
- Dependency on Elasticsearch for fast search adds external runtime requirement; users without Elasticsearch fall back to slower indexing.
- Project youth (created 2022) means long-term stability and backward-compatibility track record not yet established; API/CLI breaking changes possible.
- Unclear whether NH handles all edge cases of underlying tools (nixos-rebuild, home-manager); corner-case incompatibilities could trap users mid-workflow.
NH likely remains a well-maintained, specialized tool for power users and NixOS enthusiasts seeking better UX, without becoming the canonical default. May see gradual adoption growth within nix-community as awareness spreads and feature parity improves. Unlikely to displace nixos-rebuild or home-manager as the primary tools, but could become a recommended companion tool.
Newsletter
Get analyses like this every Monday
Free weekly digest of the most interesting open-source discoveries.
Languages
Information
- Language
- Rust
- License
- EUPL-1.2
- Last updated
- 2d ago
- Created
- 54mo ago
- Analyzed with
- anthropic/claude-haiku-4-5
Stars over time
Contributors over time
Top 100 contributors only — repos with more will plateau at 100.
Open issues
deploying on remote host stuck gathering diff
FR: reuse github token form /etc/nix/nix.conf
show nixos-rebuild progress in terminal via OSC 9;4
feature: `nh clean` on remote targets
Elevate permissions at the start of the command
Top contributors
Similar repos
nix-community/home-manager
Home Manager is a Nix-based declarative configuration system for managing user...
| Repository | Stars | Week Δ | Language | Score | Updated |
|---|---|---|---|---|---|
|
|
3k | +30 | Rust | 8/10 | 2d ago |
|
|
10.1k | — | Nix | 8/10 | 3d ago |
|
|
17.3k | — | C++ | 8/10 | 2d ago |
|
|
5.7k | — | Nix | 8/10 | 3d ago |
|
|
1.9k | — | Shell | 7/10 | 1w ago |
|
|
2.7k | — | Shell | 8/10 | 5d ago |
NH reimplements and extends nixos-rebuild with faster execution, richer output formatting, and additional subcommands. Not a replacement but an opt-in alternative with enhanced UX.
NH includes home-manager operations within its unified CLI; home-manager remains the canonical Home Manager tool. NH adds convenience layer rather than replacement.
NH's 'nh clean' extends nix-collect-garbage with gcroot management, profile targeting, and time-based retention—offering more control and safety.
Different scope: nixd focuses on language tooling and IDE integration; NH focuses on system operations and UX. Complementary rather than overlapping.
Nix 2.4+ unified CLI provides similar consolidation goals; NH targets higher-level operations (system activation, generation management) rather than Nix primitive level.