refactor: 移除 justfile 中 linux 命令的默认主机参数

This commit is contained in:
2026-04-14 22:35:12 +08:00
parent bd5b0d9772
commit 40731eda73
3 changed files with 13 additions and 6 deletions
+10 -3
View File
@@ -38,14 +38,21 @@ sudo nix run nix-darwin -- switch --flake .#mac-mini
### WSL
1. 安装 [NixOS-WSL](https://github.com/nix-community/NixOS-WSL/releases)
1. 启用 WSL 并更新内核
```powershell
wsl --install --no-distribution
wsl --update
```
2. 安装 [NixOS-WSL](https://github.com/nix-community/NixOS-WSL/releases)
```powershell
wsl --import NixOS C:\wsl\nixos nixos-wsl.tar.gz
wsl -d NixOS
```
2. 首次构建:
3. 首次构建:
```bash
nix-shell -p git --run "git clone <repo-url> ~/nix-config"
@@ -53,7 +60,7 @@ cd ~/nix-config
sudo nixos-rebuild switch --flake .#wsl
```
之后日常重建:`just rebuild`
之后日常重建:`just rebuild wsl`
## 仓库结构