What problem does it solve?
nh simplifies and automates NixOS, Home Manager, and related maintenance tasks, reducing manual configuration overhead.
Core Features & Use Cases
- System updates, switches, and garbage collection for NixOS configurations via nh os (build, switch, test, boot, rollback, info, build-vm, repl).
- Home Manager updates and configuration handling via nh home (switch, build, repl).
- Nix-Darwin support for macOS configurations via nh darwin (switch, build).
- Package discovery and workflow enhancements such as package search with nh search.
- Maintenance and cleanup through nh clean to manage Nix stores and profiles.
Quick Start
Use the nh skill to perform common operations:
- nh os switch path:.
- nh os test path:.
- nh os build path:.
- nh os boot path:.
- nh os rollback
- nh os info
- nh os build-vm path:.
- tmux new -d -s nh-repl 'nh os repl path:.'
- nh home switch path:.
- nh home build path:.
- tmux new -d -s hm-repl 'nh home repl path:.'
- nh darwin switch path:.
- nh darwin build path:.