fix: minor changes

This commit is contained in:
Ryan Yin 2023-07-03 18:18:24 +08:00
parent 30a1ff5ed2
commit 162d551002
2 changed files with 2 additions and 2 deletions

View File

@ -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`.

View File

@ -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 来解决(原理暂时不太清楚)。