CmdID

CmdID / Commands

nh-os

Reconfigure or debug a NixOS machine. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Build and switch to a specified NixOS flake configuration

nh os switch path/to/flakeIdentify

Update all the flake inputs of the specified NixOS flake configuration, build it, and make it the boot default

nh os boot path/to/flake --updateIdentify

Build and activate a specified NixOS flake configuration specialisation

nh os test path/to/flake --specialisation specialisationIdentify

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 path/to/flake --hostname hostIdentify

Load a specified NixOS flake configuration in Nix REPL (Nix evaluation environment)

nh os repl path/to/flakeIdentify

List all available generations from profile path

nh os infoIdentify

Roll back to a specified generation

nh os rollback -to generationIdentify