Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Packages

包定义分散在两个文件中:

  • modules/common/packages.nix — 用户级包(通过 Home Manager 安装)
  • modules/macos/packages.nix — 遗留文件(当前未被导入)

用户级包 (modules/common/packages.nix)

Go 开发

说明
goGo 编译器
gotagsctags for Go
goplsGo LSP
delveGo 调试器
go-toolsGo 工具集
gotestsum测试输出美化

Rust 开发

通过 fenix 提供完整工具链:

组件说明
cargo包管理器
clippyLinter
rustc编译器
rustfmt格式化
rust-src标准库源码(rust-analyzer 需要)
rust-analyzerLSP

使用 USTC 镜像加速下载:

fenixPkgs.toolchainOf {
  channel = "stable";
  date = "2025-09-18";
  sha256 = "sha256-SJwZ8g0zF2WrKDVmHrVG3pD2RGoQeo24MEXnNx5FyuI=";
  root = "https://mirrors.ustc.edu.cn/rust-static/dist";
}

JavaScript 开发

说明
nodejs_22Node.js
pnpm包管理器

Python

说明
uv极速 Python 包管理器
python3Python 解释器

Lua

说明
luaLua 解释器
luarocksLua 包管理器

基础开发工具

说明
git, git-lfs, tig版本控制
ripgrep, fd, fzf搜索工具
universal-ctags代码标签
neovim编辑器
gcc, gnumake编译工具
lazygitTUI Git
chezmoi点文件管理
helix模态编辑器
dockerfile-language-server-nodejsDockerfile LSP

系统工具

说明
bat增强 cat
tree目录树
coreutilsGNU 核心工具
zip, unzip压缩工具

系统级字体 (hosts/darwin.nix)

hosts/darwin.nix 中配置的系统级字体:

说明
hack-fontHack 字体
meslo-lgs-nfMeslo Nerd Font
noto-fontsNoto 字体
noto-fonts-emojiEmoji 字体
nerd-fonts.roboto-monoRoboto Mono Nerd Font
powerlinePowerline 字体