nh

nix helper tool

TLDR

Build NixOS configuration
$ nh os switch
Build home-manager
$ nh home switch
Build with flake
$ nh os switch --flake [.]
Dry run build
$ nh os switch --dry
Clean old generations
$ nh clean all
Search packages
$ nh search [package]

SYNOPSIS

nh [command] [options]

DESCRIPTION

nh is a Nix helper tool. It simplifies NixOS and home-manager operations.The tool wraps common Nix commands. Provides better output and UX.

PARAMETERS

COMMAND

nh subcommand.
os ACTION
NixOS operations.
home ACTION
home-manager operations.
clean TARGET
Clean generations.
search QUERY
Search packages.
--flake PATH
Use flake at path.
--help
Display help information.

INSTALL

nix profile install nixpkgs#nh

CAVEATS

Requires Nix/NixOS. Rust-based. Wrapper around nixos-rebuild.

HISTORY

nh was created to provide a better interface for common NixOS and home-manager operations.

SEE ALSO

nix(1), nixos-rebuild(1), home-manager(1)