makeThis will:
- Initialize git submodules
- Install mise (if not installed)
- Install Nix (if not installed)
- Apply nix-darwin + home-manager configuration (
darwin-rebuild switch --flake .#<hostname>) - Install development tools (
mise install,gopls)
make submodule-init # Initialize and update git submodules
make mise-install # Install mise via curl (if not installed)
make nix-install # Install Nix via official installer (if not installed)
make darwin-switch # Apply nix-darwin + home-manager configuration (flake)
make tools # Install development tools (mise install, gopls)
make help # Show available targets.
├── flake.nix
├── darwin/ # nix-darwin システム設定 + home-manager 統合
├── home/ # home-manager 配下の各ツール設定
└── Makefile
home/配下のファイルはmkOutOfStoreSymlinkでリポジトリ実体への symlink として配置されている。既存ファイル(.zshrc/nvim//claude/CLAUDE.mdなど)の内容だけを編集する場合、darwin-rebuild switchは不要で保存すれば即反映される。- 以下のケースでは
make darwin-switchが必要:home/home.nixのhome.packagesにパッケージを追加/削除home.file/xdg.configFileに新しい symlink エントリを追加darwin/配下 (configuration.nix/homebrew.nixなど) の変更flake.nix/flake.lockの更新
flake.lockを更新する場合はnix flake update後にmake darwin-switch。