nh
Modern helper utility tool for the Nix/NixOS ecosystem. tldr-pages
On several platforms
Several platforms
Modern helper utility tool for the Nix/NixOS ecosystem. Some subcommands such as os, home, clean, and search have their own usage documentation.
Build and switch to a specified NixOS flake configuration
nh os switch path/to/flakeIdentifyBuild and switch to a specified Home Manager flake configuration
nh home switch path/to/flakeIdentifyBuild and switch to a nix-darwin flake configuration
nh darwin switch path/to/flake --hostname hostIdentifyCollect all garbage and gcroots from the Nix store
nh clean all --askIdentifySearch for a package in Nixpkgs
nh search nameIdentifyGenerate shell completions for a specified shell
nh completions shellIdentify