Hello again ![]()
@notashelf and I, along with all the NH contributors, want to present the latest version of NH. (It’s been a while since 4.0 was pushed into nixpkgs, but we never did an announcement).
As a refresher, NH is a CLI tool that rewrites some NixOS commands, improving ergonomics and user experience. For example, nh os switch is the nixos-rebuild equivalent, but it shows a tree of all builds, which packages are upgraded, and asks for confirmation. Check the readme and don’t forget to give us a star
GitHub - nix-community/nh: Yet another Nix CLI helper. [Maintainers=@viperML, @NotAShelf]
Notable features for v4:
- Added support for Nix-Darwin with the new
nh darwin {switch, repl}commands. - Support for any installable; NH is now not flake-only (e.g.
nh os switch -f ./config.nix). - Remote deployments with
nh os --target-host. - Update flake inputs with
--update. - List the system’s generations with
nh os info. - Rollback your system with
nh os rollback. - NH is now a nix-community project; you are invited to contribute to this humble Rust project.
- Many bug fixes and improvements.
You can try it now directly from nixpkgs: nix shell nixpkgs#nh. If you have any questions or suggestions, please let us know ![]()