Linux command
nh-os 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Switch to new configuration
nh os switch
Build without switching
nh os build
Test configuration
nh os test
Boot into new configuration
nh os boot
说明
nh os manages NixOS system configurations. Friendly wrapper around nixos-rebuild with better output and flake support. Part of nh (nix helper) toolkit.
参数
- switch
- Build and activate configuration.
- build
- Build configuration only.
- test
- Build and activate temporarily.
- boot
- Build and set as boot default.
- --flake _ref_
- Flake reference.
- --dry
- Dry run.
- --ask
- Ask before activation.
FAQ
What is the nh-os command used for?
nh os manages NixOS system configurations. Friendly wrapper around nixos-rebuild with better output and flake support. Part of nh (nix helper) toolkit.
How do I run a basic nh-os example?
Run `nh os switch` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does switch do in nh-os?
Build and activate configuration.