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

macOS (nix-darwin) 配置

1. 克隆仓库

git clone git@github.com:BeauvnTu/Bootstrap.git
cd Bootstrap

2. 进入脚本目录

cd scripts

3. 运行构建

根据你的架构选择对应的脚本:

# Apple Silicon (M1/M2/M3)
sh ./aarch64-darwin/build-switch

# Intel Mac
sh ./x86_64-darwin/build-switch

4. 首次运行后的操作

构建完成后,系统会自动配置:

  • Homebrew 包(kitty, ghostty)
  • macOS 系统设置
  • Home Manager 用户配置(git, zsh, tmux, 开发工具包)
  • 系统字体

可用命令

命令说明
build仅构建,不切换
build-switch构建并切换到新配置
apply应用配置
rollback回滚到上一版本
create-keys创建密钥
copy-keys复制密钥
check-keys检查密钥

故障排查