imbytecat b96e144e82 refactor(modules): 添加类型注解并优化 WSL 检测
- 全模块补全类型注解 (files, after_update, on_change)
- docker: 仅在 WSL 环境禁用 networkd-wait-online
- docker: 添加 _is_wsl() 自动检测函数
- zsh/docker: 改进错误输出使用 decman.error
- wsl-init: 统一使用 [[ ]] 并格式化代码
2026-04-09 12:09:00 +08:00
2026-03-26 10:43:44 +08:00

Arch Linux 配置仓库

使用 decman 声明式管理 Arch Linux 系统配置。 默认面向 WSL 环境;裸机使用请按需修改 source.py

使用

安装 Arch LinuxWSL

需要 Windows 10/11 并已启用 WSL 2。在 PowerShell 中执行:

wsl --update
wsl --install archlinux

安装完成后,可通过开始菜单的 archlinux 应用或命令 wsl -d archlinux 启动,首次进入默认以 root 身份登录。

WSL 首次启动(默认 root 登录)

  1. 初始化普通用户:
curl -fsSL https://git.furtherverse.com/imbytecat/archlinux-config/raw/branch/main/scripts/wsl-init.sh | bash -s -- <用户名>
  1. 在 PowerShell 中设置默认用户并重启:
wsl --manage archlinux --set-default-user <用户名>
wsl --terminate archlinux
  1. 重新进入 WSL,以普通用户执行:
curl -fsSL https://git.furtherverse.com/imbytecat/archlinux-config/raw/branch/main/scripts/install.sh | bash

非 WSL 环境

直接执行第 3 步。

更新配置

cd ~/.config/archlinux-config && git pull && sudo decman
S
Description
No description provided
Readme 285 KiB
Languages
Python 63.1%
Shell 36.9%