mise bootstrap と home-manager のハイブリッド構成です。
| 担当 | 内容 |
|---|---|
| mise | 静的 dotfiles(symlink)、[bootstrap.packages](brew/apt)、タスク |
| home-manager | git / ssh / direnv の生成、端末依存設定、Nix 文脈ツール |
ランタイムのバージョン管理([tools])はプロジェクト単位の .mise.toml で行う。グローバル CLI は brew/apt 経由。
config/: 静的ドットファイル(Zsh, Tmux, Neovim, Ghostty 等)mise/: mise のグローバル設定profiles/hal/,hosts/: home-manager(生成系のみ)scripts/: 補助スクリプト
curl https://mise.run | shsh <(curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install)
mkdir -p ~/.config/nix
echo 'experimental-features = nix-command flakes' >> ~/.config/nix/nix.confgit clone https://github.com/HALQME/dotfiles.git ~/.dotfiles
cd ~/.dotfiles# パッケージ + 静的 dotfiles
mise trust
MISE_CONFIG_FILE=~/.dotfiles/mise/config.toml mise bootstrap --yes
# 端末依存 config + Nix ツール(git/ssh/direnv, comma, nix-index)
home-manager switch --flake ~/.dotfiles#hal@$(hostname -s).localホスト名が flake に無い場合は明示指定:
home-manager switch --flake ~/.dotfiles#hal@MacBook-Pro.localcd ~/.dotfiles && git pull
mise bootstrap --yes
home-manager switch --flake .#hal@$(hostname -s).local- cask(GUI アプリ):
config/homebrew/Brewfileを編集 →python3 scripts/brewfile-to-mise.py - formula(CLI):
scripts/brewfile-to-mise.pyのFORMULAEリストを編集 → 同上
SSH鍵、Git署名、端末移行時の手順は docs/git&verify.md を参照。
hosts/<hostname>/を作成(macbook/をコピーしてよい)hosts/<hostname>/git.nixのsigningKeyを Secretive の公開鍵パスに更新flake.nixのhomeDefinitionsにhal@<hostname>.localを追加mise bootstrap --yes→home-manager switch --flake .#hal@<hostname>.local
home-manager switch --flake .#ci@actions
MISE_CONFIG_FILE=~/.dotfiles/mise/config.toml mise bootstrap --yes --skip macos-defaults,macos-launchd-agents