Files
nix-config/README.md
T
imbytecat bbfa5bff1c Improve bootstrap robustness and add safety checks
- Fix /tmp/yay conflict with rm -rf before clone
- Use script directory instead of current directory
- Add pipefail to error handling
- Add command existence checks for mise/zoxide in .zshrc
- Add HTTPS clone option in README
2026-03-25 13:33:32 +08:00

39 lines
769 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Arch Linux WSL 初始化配置
使用 dcli 声明式管理 Arch Linux 配置。
## 快速开始
```bash
# 1. 克隆仓库(SSH 或 HTTPS
git clone git@git-ssh.furtherverse.com:imbytecat/archlinux-wsl-init.git
# 或: git clone https://git-ssh.furtherverse.com/imbytecat/archlinux-wsl-init.git
cd archlinux-wsl-init
# 2. 运行 bootstrap(安装 yay 和 dcli
chmod +x bootstrap.sh
./bootstrap.sh
# 3. 检查配置(可选)
cat ~/.config/arch-config/hosts/wsl.yaml
# 4. 应用配置
dcli sync
```
## 配置说明
- `arch-config/hosts/wsl.yaml` - WSL 配置
- `arch-config/modules/` - 模块化包管理
- `arch-config/files/` - 配置文件(自动同步)
## 更新配置
```bash
# 修改配置后同步
dcli sync
# 更新系统
dcli update
```