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