This repository contains my personal dotfiles and system configuration for macOS using Nix and Nix-Darwin.
- System-wide package management with Nix
- Declarative system configuration with Nix-Darwin
- Home directory configuration with Home Manager
- Git configuration management
- Shell environment setup
- macOS 10.15 (Catalina) or later
- Administrative privileges
- Xcode Command Line Tools installed
stow .
sh <(curl -L https://nixos.org/nix/install)
cd /nix-darwin
# Initialize flake
nix flake init -t nix-darwin
# Build initial configuration
nix build .#mini
# Create first generation
darwin-rebuild switch --flake .#mini
The configuration is organized into the following directories:
git/
: Git configuration filesnix/
: Nix package manager configurationnix-darwin/
: System configuration using Nix-Darwin
Common issues and solutions:
- Permission errors: Run commands with
sudo
when necessary - Broken packages: Try running
nix-collect-garbage -d
to clean up old packages