Files
nix-config/README.md
T

43 lines
859 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/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
```