CmdID

CmdID / Commands

nixos-rebuild

Reconfigure a NixOS machine. tldr-pages

On Linux

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

Build and switch to the new configuration, making it the boot default

sudo nixos-rebuild switchIdentify

Build and switch to the new configuration, making it the boot default and naming the boot entry

sudo nixos-rebuild switch --profile-name nameIdentify

Build and switch to the new configuration, making it the boot default and installing updates

sudo nixos-rebuild switch --upgradeIdentify

Roll back changes to the configuration, switching to the previous generation

sudo nixos-rebuild switch --rollbackIdentify

Build the new configuration and make it the boot default without switching to it

sudo nixos-rebuild bootIdentify

Build and activate the new configuration, but don't make a boot entry (for testing purposes)

sudo nixos-rebuild testIdentify

Build the configuration and open it in a virtual machine

sudo nixos-rebuild build-vmIdentify

List available generations similar to the boot loader menu

nixos-rebuild list-generationsIdentify