Updating NixOS: Difference between revisions

AveryKoen (talk | contribs)
mNo edit summary
AveryKoen (talk | contribs)
mNo edit summary
Line 4: Line 4:
As part of this process, only repository channels are updated or removed during updates. The system '''requires an internet connection''' to download the latest changes, and users '''cannot''' directly modify the system. For optimal stability, security, and access to new features, regular updates — ideally '''once a week''' — are recommended.
As part of this process, only repository channels are updated or removed during updates. The system '''requires an internet connection''' to download the latest changes, and users '''cannot''' directly modify the system. For optimal stability, security, and access to new features, regular updates — ideally '''once a week''' — are recommended.


<!-- Important -->All commands below are executed in a Terminal application (Shell: Bash).
All commands below are executed in a Terminal application (Shell: Bash).
== 2. Rebuilding the system after editing configuration.nix file ==
== 2. Rebuilding the system after editing configuration.nix file ==
If you want to apply the configuration changes made in <code>/etc/nixos/configuration.nix</code> without updating the channels, [[Nixpkgs]] and package versions. This is typically used when you've edited the system configuration, and you just want to apply those changes:<syntaxhighlight lang="bash">
If you want to apply the configuration changes made in <code>/etc/nixos/configuration.nix</code> without updating the channels, [[Nixpkgs]] and package versions. This is typically used when you've edited the system configuration, and you just want to apply those changes:<syntaxhighlight lang="bash">