Updating NixOS: Difference between revisions
` |
Reference to NixOS manual and re-introduce nixos-rebuild switch --upgrade as a shortcut. |
||
| Line 10: | Line 10: | ||
== For non-flake configurations == | == For non-flake configurations == | ||
What follows is a short set of instructions. Further details can be found in the [https://nixos.org/manual/nixos/stable/#sec-upgrading NixOS Manual.] | |||
=== Updating NixOS channels === | === Updating NixOS channels === | ||
| Line 24: | Line 26: | ||
</syntaxhighlight>To apply configuration changes and new package updates only '''after''' rebooting the system, use the following command instead:<syntaxhighlight lang="console"> | </syntaxhighlight>To apply configuration changes and new package updates only '''after''' rebooting the system, use the following command instead:<syntaxhighlight lang="console"> | ||
# nixos-rebuild boot | # nixos-rebuild boot | ||
</syntaxhighlight> | |||
=== Updating channel and rebuilding the system === | |||
The below command is a shortcut equivalent to running '''nix-channel --update nixos; nixos-rebuild switch''' previously described: | |||
<syntaxhighlight lang="console"> | |||
# nixos-rebuild switch --upgrade | |||
</syntaxhighlight> | </syntaxhighlight> | ||