nix-community

nix-community/nh

Rust EUPL-1.2 DevOps Single maintainer risk

Yet another Nix CLI helper. [Maintainers=@NotAShelf, @faukah]

3k stars
119 forks
active
GitHub +30 / week

3k

Stars

119

Forks

76

Open issues

30

Contributors

v4.4.1 07 Jul 2026

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.

DevOps Developer Tool Discovery value: 5/10
Documentation 9/10
Activity 9/10
Community 8/10
Code quality 8/10

Inferred from signals mentioned in the README (tests, CI, type safety) — not a review of the actual code.

Overall score 8/10

AI's overall editorial judgment — not an average of the bars above, can weigh other factors too.

nix-ecosystem cli-helper rust-tooling system-management declarative-infrastructure
Actively maintained Well documented Niche/specialized use case Production ready
Deep Analysis · Based on README and public signals
4d ago

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.

Origin

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.

Growth

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.

In production

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.

Code analysis
Architecture

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.

Tests

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.

Maintenance

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.

Honest verdict

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

Risks
  • 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.
Prediction

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.

0 found this helpful

Newsletter

Get analyses like this every Monday

Free weekly digest of the most interesting open-source discoveries.

Languages

Rust
98.5%
Nix
1.4%
Just
0.1%
Shell
0%

Information

Language
Rust
License
EUPL-1.2
Last updated
2d ago
Created
54mo ago
Analyzed with
anthropic/claude-haiku-4-5

Stars over time

Loading…

Contributors over time

Top 100 contributors only — repos with more will plateau at 100.

Loading…

Similar repos

nix-community

nix-community/home-manager

Home Manager is a Nix-based declarative configuration system for managing user...

10.1k Nix DevOps
NixOS

NixOS/nix

Nix is a purely functional package manager for Linux and Unix systems that...

17.3k C++ DevOps
nix-darwin

nix-darwin/nix-darwin

nix-darwin brings declarative system configuration to macOS using Nix,...

5.7k Nix DevOps
hlissner

hlissner/dotfiles

A personal NixOS declarative configuration repository using Nix Flakes,...

1.9k Shell DevOps
nix-community

nix-community/nix-direnv

nix-direnv is a fast, persistent implementation of direnv's use_nix and...

2.7k Shell DevOps
vs. alternatives
nixos-rebuild (default NixOS CLI)

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.

home-manager (nix-community)

NH includes home-manager operations within its unified CLI; home-manager remains the canonical Home Manager tool. NH adds convenience layer rather than replacement.

nix-collect-garbage (default Nix CLI)

NH's 'nh clean' extends nix-collect-garbage with gcroot management, profile targeting, and time-based retention—offering more control and safety.

nixd (nix-community LSP/CLI tool)

Different scope: nixd focuses on language tooling and IDE integration; NH focuses on system operations and UX. Complementary rather than overlapping.

nix shell / nix flake (modern Nix CLI)

Nix 2.4+ unified CLI provides similar consolidation goals; NH targets higher-level operations (system activation, generation management) rather than Nix primitive level.