By neildaemond, an 'any-stack' hacking grasshopper.
Taking notes while tinkering with:

Rebuilding Nixos After Updating Configs

I’m playing around with NixOS on an old iMac from 2013

Keen on using this machine in a ‘primarily Rust context’, I’m working through the process of adding the foundational packages and, following guides, updating the underlying configuration.nix file and others.

One remarkable feature of NixOS is the atomic upgrades. Applying changes, I can easily roll them back to previously saved states. To summarise:


Table of NixOS Build and Rollback Commands

Action What it does
nixos-rebuild switch Build & activate new system
nixos-rebuild switch --rollback Revert to the previous kown-good config
nixos-rebuild build Dry run - build only, don’t apply
GRUB book menu Lets you boot into older system generations

#NixOs