# Using nixos-rebuild for NixOS Configuration, Upgrades, Rollbacks, and Testing

DevFeed: [Using nixos-rebuild for NixOS Configuration, Upgrades, Rollbacks, and Testing](<https://devfeed.tech/articles/magic-deployments-with-nixos-rebuild-32449.md>)

Original publisher: [Read original article](<https://nixcademy.com/posts/nixos-rebuild/>)

Author: Jacek Galowicz

Published: 2023-07-31T00:00:00Z

Content type: tutorial

Language: en

Sources: [Nixcademy Blog](<https://devfeed.tech/sources/nixcademy-blog.md>)

Topics: [Nix](<https://devfeed.tech/topics/nix.md>), [configuration](<https://devfeed.tech/topics/configuration.md>), [Deployment](<https://devfeed.tech/topics/deployment.md>), [upgrade](<https://devfeed.tech/topics/upgrade.md>), [dry-run](<https://devfeed.tech/topics/dry-run.md>)

Tags: [configuration](<https://devfeed.tech/tags/configuration.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [dry-run](<https://devfeed.tech/tags/dry-run.md>), [tooling](<https://devfeed.tech/tags/tooling.md>), [upgrade](<https://devfeed.tech/tags/upgrade.md>)

## AI overview

This tutorial explains nixos-rebuild, the standard tool for changing an installed NixOS system. It covers configuration changes, input updates, upgrades, rollbacks, dry runs, virtual-machine testing, local rebuilds, and remote deployment or building.

## Source excerpt

Discover the power of nixos-rebuild for seamless system configuration, upgrades, and rollbacks with just a few commands. Explore its versatile capabilities!