refactor: 从 dcli 迁移到 decman 声明式配置管理

- 新增 source.py 统一声明包、系统文件和 dotfiles
- 简化 install.sh,由 decman 接管系统文件和 locale 配置
- 移除 dcli 配置(config.yaml、hosts/、modules/、state/)
- 添加 pyproject.toml 和 uv.lock 用于开发环境类型提示
- 更新 README.md 和 AGENTS.md 适配 decman 工作流
This commit is contained in:
2026-03-26 10:31:07 +08:00
parent 34d4325f09
commit 56a2cc483f
16 changed files with 360 additions and 227 deletions
-18
View File
@@ -1,18 +0,0 @@
---
description: 基础工具
packages:
- base-devel
- bat
- curl
- dcli-arch-git
- fd
- fzf
- git
- neovim
- ripgrep
- sudo
- trash-cli
- vim
- wget
- yay
- zoxide
-6
View File
@@ -1,6 +0,0 @@
---
description: 开发工具
packages:
- bun
- mise
- nodejs
-30
View File
@@ -1,30 +0,0 @@
# Oh My Zsh
ZSH=/usr/share/oh-my-zsh/
ZSH_THEME="ys"
plugins=(git)
ZSH_CACHE_DIR=$HOME/.cache/oh-my-zsh
if [[ ! -d $ZSH_CACHE_DIR ]]; then
mkdir $ZSH_CACHE_DIR
fi
source $ZSH/oh-my-zsh.sh
source /usr/share/zsh/plugins/fzf-tab-git/fzf-tab.plugin.zsh
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
# bun
export PATH="$HOME/.bun/bin:$PATH"
# mise
if command -v mise &> /dev/null; then
eval "$(mise activate zsh)"
fi
# zoxide
if command -v zoxide &> /dev/null; then
eval "$(zoxide init zsh)"
fi
# Aliases
alias cd="z"
alias cdi="zi"
alias rm="trash-put"
-7
View File
@@ -1,7 +0,0 @@
---
description: Zsh 及插件
dotfiles:
- source: dotfiles/.zshrc
target: ~/.zshrc
post_install_hook: set-default-shell.sh
hook_behavior: once
-8
View File
@@ -1,8 +0,0 @@
---
packages:
- fzf-tab-git
- oh-my-zsh-git
- zsh
- zsh-autosuggestions
- zsh-completions
- zsh-syntax-highlighting
-10
View File
@@ -1,10 +0,0 @@
#!/bin/bash
set -euo pipefail
if [ "$SHELL" != "$(which zsh)" ]; then
echo "==> 设置默认 shell 为 zsh..."
sudo chsh -s "$(which zsh)" "$USER"
echo "✓ 默认 shell 已设置为 zsh(重新登录后生效)"
else
echo "默认 shell 已经是 zsh"
fi