From 91829a621d7ef686f4bc4be2356054ac07099460 Mon Sep 17 00:00:00 2001 From: imbytecat Date: Thu, 26 Mar 2026 14:40:44 +0800 Subject: [PATCH] =?UTF-8?q?refactor(source):=20=E7=A7=BB=E9=99=A4=E5=86=97?= =?UTF-8?q?=E4=BD=99=E6=B3=A8=E9=87=8A=EF=BC=9Bfeat(base):=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=20btop/fastfetch/lazygit/micro?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/base.py | 4 ++++ source.py | 11 ----------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/modules/base.py b/modules/base.py index d9b4631..2a0c70b 100644 --- a/modules/base.py +++ b/modules/base.py @@ -23,10 +23,14 @@ class BaseModule(Module): return { "base-devel", "bat", + "btop", "bun", "curl", + "fastfetch", "fd", "git", + "lazygit", + "micro", "mise", "neovim", "nodejs", diff --git a/source.py b/source.py index 26afb8c..c80255b 100644 --- a/source.py +++ b/source.py @@ -1,12 +1,3 @@ -""" -Arch Linux 声明式系统配置 — decman - -执行顺序:files → pacman → aur → systemd -用法: - 首次:sudo decman --source /path/to/source.py - 后续:sudo decman -""" - import os import decman @@ -20,12 +11,10 @@ assert decman.pacman is not None assert decman.aur is not None assert decman.systemd is not None -# ── 用户 ────────────────────────────────────────────────────── USERNAME = os.environ.get("SUDO_USER") if not USERNAME: raise decman.SourceError("请使用 sudo decman 运行") -# ── Modules ────────────────────────────────────────────────── decman.modules += [ modules.base.BaseModule(), modules.locale.LocaleModule(),