mirror of
https://github.com/ryan4yin/nixos-and-flakes-book
synced 2024-12-18 08:23:09 +00:00
433 B
433 B
Updating the System
With Flakes, updating the system is simple. Just run the following commands in /etc/nixos
(
or any other place where you keep the configuration.):
# Update flake.lock
nix flake update
# Apply the updates
sudo nixos-rebuild switch
Sometimes, you may encounter a sha256 mismatch error when running nixos-rebuild switch
. This can be resolved by updating flake.lock
through nix flake update
.