refactor(source): 移除冗余注释;feat(base): 添加 btop/fastfetch/lazygit/micro
This commit is contained in:
@@ -23,10 +23,14 @@ class BaseModule(Module):
|
||||
return {
|
||||
"base-devel",
|
||||
"bat",
|
||||
"btop",
|
||||
"bun",
|
||||
"curl",
|
||||
"fastfetch",
|
||||
"fd",
|
||||
"git",
|
||||
"lazygit",
|
||||
"micro",
|
||||
"mise",
|
||||
"neovim",
|
||||
"nodejs",
|
||||
|
||||
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user