mirror of
https://github.com/ryan4yin/nixos-and-flakes-book.git
synced 2024-11-24 17:13:12 +01:00
update-the-system: add hint about --recreate-lock-file argument (#181)
This commit is contained in:
parent
6a9307505b
commit
869cea884c
@ -12,6 +12,9 @@ nix flake update home-manager
|
|||||||
|
|
||||||
# Apply the updates
|
# Apply the updates
|
||||||
sudo nixos-rebuild switch --flake .
|
sudo nixos-rebuild switch --flake .
|
||||||
|
|
||||||
|
# Or to update flake.lock & apply with one command (i.e. same as running "nix flake update" before)
|
||||||
|
sudo nixos-rebuild switch --recreate-lock-file --flake .
|
||||||
```
|
```
|
||||||
|
|
||||||
Occasionally, you may encounter a "sha256 mismatch" error when running
|
Occasionally, you may encounter a "sha256 mismatch" error when running
|
||||||
|
Loading…
Reference in New Issue
Block a user