Files
archlinux-config/README.md
T
imbytecat b899e4cb9f 添加 root-setup.sh 脚本用于 WSL 首次初始化
- 自动安装 sudo、创建用户、配置免密 sudo
- 写入 /etc/wsl.conf 设置默认用户
- 整合 WSL.md 内容到脚本中,删除原文档
- 更新 README 为两阶段安装流程
2026-03-25 14:26:57 +08:00

43 lines
843 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 配置仓库
使用 dcli 声明式管理 Arch Linux 配置(当前默认主机为 wsl,可扩展到其他主机)。
## 快速开始
### 1. 初始化用户(以 root 身份,仅 WSL 首次)
```bash
curl -fsSL https://git.furtherverse.com/imbytecat/archlinux-config/raw/branch/main/root-setup.sh | bash -s -- <用户名>
```
然后在 PowerShell 中重启 WSL
```powershell
wsl --terminate archlinux
```
### 2. 安装配置(以普通用户身份)
```bash
curl -fsSL https://git.furtherverse.com/imbytecat/archlinux-config/raw/branch/main/install.sh | bash
```
### 3. 应用配置
```bash
dcli sync
```
## 配置说明
- `hosts/wsl.yaml` - WSL 配置
- `modules/` - 模块化包管理
- `files/` - 配置文件(自动同步)
## 更新配置
```bash
cd ~/.config/arch-config && git pull
dcli sync
```