Forrest logo
back to context overview

nixos-rebuild

List of commands for nixos-rebuild:

  • nixos-rebuild:tldr:0a5ff nixos-rebuild: Build and switch to the new configuration, making it the boot default and installing updates.
    $ sudo nixos-rebuild switch --upgrade
    try on your machine
    explain this command
  • nixos-rebuild:tldr:2b0fb nixos-rebuild: Build and switch to the new configuration, making it the boot default.
    $ sudo nixos-rebuild switch
    try on your machine
    explain this command
  • nixos-rebuild:tldr:68846 nixos-rebuild: Build the new configuration and make it the boot default without switching to it.
    $ sudo nixos-rebuild boot
    try on your machine
    explain this command
  • nixos-rebuild:tldr:8fc96 nixos-rebuild: Build and activate the new configuration, but don't make a boot entry (for testing purposes).
    $ sudo nixos-rebuild test
    try on your machine
    explain this command
  • nixos-rebuild:tldr:c92b7 nixos-rebuild: Build the configuration and open it in a virtual machine.
    $ sudo nixos-rebuild build-vm
    try on your machine
    explain this command
  • nixos-rebuild:tldr:e72bb nixos-rebuild: Rollback changes to the configuration, switching to the previous generation.
    $ sudo nixos-rebuild switch --rollback
    try on your machine
    explain this command
  • nixos-rebuild:tldr:efef2 nixos-rebuild: Build and switch to the new configuration, making it the boot default and naming the boot entry.
    $ sudo nixos-rebuild switch -p ${name}
    try on your machine
    explain this command
back to context overview