mirror of
https://github.com/ryan4yin/nixos-and-flakes-book.git
synced 2025-06-22 04:51:29 +02:00
fix: minor changes
This commit is contained in:
parent
30a1ff5ed2
commit
162d551002
@ -7,7 +7,7 @@ or any other place where you keep the configuration.):
|
||||
# Update flake.lock
|
||||
nix flake update
|
||||
# Apply the updates
|
||||
sudo nixos-rebuild switch
|
||||
sudo nixos-rebuild switch --flake .
|
||||
```
|
||||
|
||||
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`.
|
||||
|
@ -6,7 +6,7 @@
|
||||
# 更新 flake.lock
|
||||
nix flake update
|
||||
# 部署系统
|
||||
sudo nixos-rebuild switch
|
||||
sudo nixos-rebuild switch --flake .
|
||||
```
|
||||
|
||||
另外有时候安装新的包,跑 `sudo nixos-rebuild switch` 时可能会遇到 sha256 不匹配的报错,也可以尝试通过 `nix flake update` 更新 flake.lock 来解决(原理暂时不太清楚)。
|
||||
|
Loading…
x
Reference in New Issue
Block a user