nh
Modern helper utility tool for the Nix/NixOS ecosystem. Some subcommands such as
os,home,clean, andsearchhave their own usage documentation. More information: https://github.com/nix-community/nh#usage.
- Build and switch to a specified NixOS flake configuration:
nh os switch
- Build and switch to a specified Home Manager flake configuration:
nh home switch
- Build and switch to a nix-darwin flake configuration:
nh darwin switch
- Collect all garbage and gcroots from the Nix store:
nh clean all
- Search for a package in Nixpkgs:
nh search
- Generate shell completions for a specified shell:
nh completions
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
