My macOS configuration managed with nix-darwin + home-manager.
flake.nix- Main entry pointnix-darwin/configuration.nix- System settingsnix-darwin/homebrew.nix- Homebrew casks and brewshome-manager/home.nix- Packages and program configuration
-
Install Nix
-
Clone this repository:
git clone https://github.com/t3yamoto/dotfiles ~/dev/github.com/t3yamoto/dotfiles cd ~/dev/github.com/t3yamoto/dotfiles
-
Apply the configuration:
sudo darwin-rebuild switch --flake . -
Set up manually managed files:
- Create
~/.config/git/config_privatefor organization-specific ghq settings - Run
gh auth loginfor GitHub authentication - Enable 1Password SSH Agent in Settings → Developer
- Create
# Apply changes
sudo darwin-rebuild switch --flake .
# Update all packages
nix flake update && sudo darwin-rebuild switch --flake .