nh os
Reconfigure or debug a NixOS machine. More information: https://github.com/nix-community/nh#usage.
- Build and switch to a specified NixOS flake configuration:
nh os switch
- Update all the flake inputs of the specified NixOS flake configuration, build it, and make it the boot default:
nh os boot
- Build and activate a specified NixOS flake configuration specialisation:
nh os test
- Build a specified NixOS flake configuration host and create a symlink of the result from the Nix store in the current directory:
nh os build-vm
- Load a specified NixOS flake configuration in Nix REPL (Nix evaluation environment):
nh os repl
- List all available generations from profile path:
nh os info
- Roll back to a specified generation:
nh os rollback
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
