Skip to content

Latest commit

 

History

History
161 lines (116 loc) · 5.68 KB

File metadata and controls

161 lines (116 loc) · 5.68 KB

-----------------------------------------------------

Dotfiles

settings

-----------------------------------------------------

Alt

-----------------------------------------------------

Tools

Settings

-----------------------------------------------------

Articles

Scripts



                               .---\         "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"

                                     ███╗   ██╗██╗██╗  ██╗
                                     ████╗  ██║██║╚██╗██╔╝
                                     ██╔██╗ ██║██║ ╚███╔╝
                                     ██║╚██╗██║██║ ██╔██╗
                                     ██║ ╚████║██║██╔╝╚██╗
                                     ╚═╝  ╚═══╝╚═╝╚═╝  ╚═╝


Setup (New Mac)

Prerequisites

  • macOS (Apple Silicon)
  • Git

Installation

# 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

Available Hosts

Host Description
geisha Main Mac
bourbon Second Mac

What's Managed by Nix

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.

Manual Setup Required

Item Reason
Apple ID Security
App Logins Authentication
SSH Keys ~/.ssh/ not managed
AWS/Git Credentials Sensitive data

Daily Commands

# Apply configuration changes
nix-switch

# Update flake inputs
nfu

# Garbage collection
ngc

Commit Message

npx czg --api-key="ghp_xxxxxx" --api-endpoint="https://models.inference.ai.azure.com" --api-model="gpt-4o-mini"

OpenAI | cz-git