NixOS: Difference between revisions
imported>Nix →Installation: add alternative installers note |
imported>Edrex add command to set current generation as boot default |
||
| Line 187: | Line 187: | ||
</syntaxHighlight> | </syntaxHighlight> | ||
NixOS also places entries for previous generations in the bootloader menu, so as a last resort you can always revert to a previous configuration by rebooting. | NixOS also places entries for previous generations in the bootloader menu, so as a last resort you can always revert to a previous configuration by rebooting. To set the currently booted generation as the default run | ||
<syntaxHighlight lang=shell> | |||
$ /run/current-system/bin/switch-to-configuration boot | |||
</syntaxHighlight> | |||
Because NixOS keeps previous generations of system state available in case rollback is desired, old package versions aren't deleted from your system immediately after an update. You can delete old generations manually: | Because NixOS keeps previous generations of system state available in case rollback is desired, old package versions aren't deleted from your system immediately after an update. You can delete old generations manually: | ||