nh-os

manages NixOS system configurations

TLDR

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

SYNOPSIS

nh os command [options]

DESCRIPTION

nh os manages NixOS system configurations. Friendly wrapper around nixos-rebuild with better output and flake support. Part of nh (nix helper) toolkit.

PARAMETERS

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.

INSTALL

nix profile install nixpkgs#nh

SEE ALSO

nh(1), nixos-rebuild(1)