mozumasu
dotfiles
Lua

MACの環境設定

Last updated Jul 9, 2026
131
Stars
1
Forks
0
Issues
+1
Stars/day
Attention Score
66
Language breakdown
Lua 41.1%
Shell 34.1%
Nix 16.0%
Python 4.4%
TypeScript 2.3%
Perl 0.9%
Files click to expand
README

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

Dotfiles

settings

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

Alt

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

Tools

Neovim

Settings

  • wezterm
.config/wezterm
  • zsh
.config/zsh
  • Neovim
.config/nvim

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

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
🔗 More in this category

© 2026 GitRepoTrend · mozumasu/dotfiles · Updated daily from GitHub