docs(readme): 修正 WSL 首次构建步骤,使用 nix shell 替代过时的 nix-shell
This commit is contained in:
@@ -55,7 +55,8 @@ wsl -d NixOS
|
|||||||
3. 首次构建:
|
3. 首次构建:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
nix-shell -p git --run "git clone <repo-url> ~/nix-config"
|
nix shell nixpkgs#git
|
||||||
|
git clone <repo-url> ~/nix-config
|
||||||
cd ~/nix-config
|
cd ~/nix-config
|
||||||
sudo nixos-rebuild switch --flake .#wsl
|
sudo nixos-rebuild switch --flake .#wsl
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user