- wezterm
.config/wezterm - zsh
.config/zsh - Neovim
.config/nvim
.---\ "MMMMN, #MM#.
/ \ "MMMMM, MMMMM7
\ \ "MMMMM,vMMMMM"
\ \ "MMMMMMMMMM"
.------? 4--------\"MMMMMMMM"
/ \"MMMMM4 /\
/_________________________\"MMMMM. / \
.MMMMM" "MMMMM. / \
.MMMMM" "MMMMM,/ /
.MMMMM" "MMMM/ /
.MMMMM" "MM/ /
MMMMMMMMMMMMMM" "/ 4------.
pMMMMMMMMMMMMM", / '
NMMMMMMMMMMM"/ \ / _________/
,#MMMM"/ \ / /
,MMMMM"/ \ / /
"MMMMM" \ \ /______/
"MMM" \ \"MMMMMMMMMMMMMMMMMMMMMMMMMP
"M" / \"MMMMMMMMMMMMMMMMMMMMMMMP
" / \"MMMMMMMMMMMMMMMMMMMMMP
/ \ "NMMMM,
/ /\ \ "NMMMMM
4 / \ \ "NMMMM"
\___/ \_____\ "NMM"
███╗ ██╗██╗██╗ ██╗
████╗ ██║██║╚██╗██╔╝
██╔██╗ ██║██║ ╚███╔╝
██║╚██╗██║██║ ██╔██╗
██║ ╚████║██║██╔╝╚██╗
╚═╝ ╚═══╝╚═╝╚═╝ ╚═╝
- macOS (Apple Silicon)
- Git
# 1. Install Nix
sh <(curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install)
# 2. Clone dotfiles (use nix-shell if git is not installed)
nix-shell -p git --run "git clone https://github.com/mozumasu/dotfiles ~/dotfiles"
# 3. Backup existing shell configs (first time only)
sudo mv /etc/bashrc /etc/bashrc.before-nix-darwin
sudo mv /etc/zshrc /etc/zshrc.before-nix-darwin
# 4. Apply nix-darwin configuration (first time)
# Note: $HOME is expanded before sudo runs, so the path is correct
# Replace <hostname> with your host name (geisha, bourbon, etc.)
sudo nix run \
--extra-experimental-features nix-command \
--extra-experimental-features flakes \
nix-darwin -- switch --flake "$HOME/dotfiles/.config/nix#<hostname>"
# After initial setup, use:
# nix-switch (or darwin-rebuild switch --flake ~/dotfiles/.config/nix#<hostname>)Homebrew is automatically installed via nix-homebrew
| Host | Description |
|---|---|
geisha |
Main Mac |
bourbon |
Second Mac |
| Category | Description |
|---|---|
| Homebrew | Auto-installed via nix-homebrew |
| CLI Tools | 75+ packages via home-manager |
| GUI Apps | 43 Casks via Homebrew |
| Brew Packages | 99 formulae |
| Dotfiles | nvim, zsh, wezterm, karabiner, etc. |
| macOS Settings | Dock, Finder, Keyboard, Trackpad, etc. |
| Item | Reason |
|---|---|
| Apple ID | Security |
| App Logins | Authentication |
| SSH Keys | ~/.ssh/ not managed |
| AWS/Git Credentials | Sensitive data |
| Karabiner Permissions | Accessibility permissions |
# Apply configuration changes
nix-switch
# Update flake inputs
nfu
# Garbage collection
ngcnpx czg --api-key="ghp_xxxxxx" --api-endpoint="https://models.inference.ai.azure.com" --api-model="gpt-4o-mini"

