This repository contains my personal dotfiles for configuring my development environment on macOS.
Before restoring the dotfiles, ensure you have the following installed:
-
Install Xcode Command Line Tools: Open your terminal and run:
xcode-select --install
-
Install Homebrew: Run the following command in your terminal:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
-
Install Nix: Use the following command to install Nix using the Determinate Systems installer for macOS (multi-user install):
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install --determinate
-
Bootstrap nix-darwin: After installing Nix, you can bootstrap nix-darwin by running:
nix build --impure --expr '<nix-darwin>' -o result ./result/bin/darwin-rebuild switch
-
Clone the repository:
git clone https://github.com/yourusername/dotfiles.git ~/.dotfiles
-
Navigate to the dotfiles directory:
cd ~/.dotfiles
-
Apply the configurations using the alias 'switch':
switch
My Zsh and Neovim configurations are managed declaratively using Nix. Please refer to the Nix documentation for more details on how to set up your environment.
For terminal multiplexing, I use WezTerm. Ensure you have it installed and configured according to your preferences.
Before applying the new configurations, it's a good idea to back up your existing dotfiles. You can do this by renaming them or moving them to a backup directory.
After restoring the dotfiles, you may want to customize certain settings. Check the configuration files in the .config/
subdirectory for any specific options.
If you encounter any issues, please refer to the documentation for Nix, WezTerm, or any other tools you are using. Common issues may include missing dependencies or configuration conflicts.