docs(readme): 修正 WSL 首次构建步骤,使用 nix shell 替代过时的 nix-shell

This commit is contained in:
2026-04-15 03:48:22 +08:00
parent ba7e0bb7af
commit 4e7ddff3eb
+2 -1
View File
@@ -55,7 +55,8 @@ wsl -d NixOS
3. 首次构建:
```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
sudo nixos-rebuild switch --flake .#wsl
```