nixos-rebuild

nixos-rebuild

TLDR

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

>_ sudo nixos-rebuild switch
copy

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

>_ sudo nixos-rebuild switch -p [name]
copy

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

>_ sudo nixos-rebuild switch --upgrade
copy

Rollback changes to the configuration, switching to the previous generation

>_ sudo nixos-rebuild switch --rollback
copy

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

>_ sudo nixos-rebuild boot
copy

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

>_ sudo nixos-rebuild test
copy

Build the configuration and open it in a virtual machine

>_ sudo nixos-rebuild build-vm
copy

Copied to clipboard
free 100$ digital ocean credit