Options (4)
-u, --updatebooleanUpdate all the flake inputs of the specified NixOS flake configuration, build it and make it the boot default
nh os boot {{path/to/flake}} {{[-u|--update]}}-s, --specialisationbooleanBuild and activate a specified NixOS flake configuration specialisation
nh os test {{path/to/flake}} {{[-s|--specialisation]}} {{specialisation}}-H, --hostnamebooleanBuild 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 {{path/to/flake}} {{[-H|--hostname]}} {{host}}-tbooleanRollback to a specified generation
nh os rollback {{[-t|-to]}} {{generation}}Examples (7)
Build and switch to a specified NixOS flake configuration
nh os switch path/to/flakeUpdate all the flake inputs of the specified NixOS flake configuration, build it and make it the boot default
Build and activate a specified NixOS flake configuration specialisation
Build a specified NixOS flake configuration host and create a symlink of the result from the Nix store in the current directory
Load a specified NixOS flake configuration in Nix REPL (Nix evaluation environment)
nh os repl path/to/flakeRollback to a specified generation
nh os rollback [-t|-to] generation