Dotfiles for exactly two machines:
- a main macOS machine
- an Ubuntu VPS named
box
On first apply, chezmoi prompts for the passphrase for key.txt.age and writes the decrypted key to ~/.config/chezmoi/key.txt via run_onchange_before_decrypt-private-key.sh.tmpl.
- Install Xcode Command Line Tools.
xcode-select --install- Install Homebrew before the first apply.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"This repo runs brew bundle during apply through run_onchange_01_install-homebrew.sh.tmpl. It does not install Homebrew for you.
- Make sure GitHub SSH access works.
.chezmoiexternal.toml pulls external repos via git@github.com:..., even if the main repo is cloned over HTTPS.
- Install
chezmoi.
brew install chezmoi- Initialize and apply the repo.
chezmoi init --apply git@github.com:tifandotme/dotfiles.gitIf you prefer HTTPS for the main repo, that also works:
chezmoi init --apply https://github.com/tifandotme/dotfiles.git- Install base packages.
sudo apt update
sudo apt install -y curl git- Install
chezmoiwith the official installer.
sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply $GITHUB_USERNAME- Make sure GitHub SSH access works.
The main repo can be cloned over HTTPS, but .chezmoiexternal.toml still uses SSH URLs for external repos.
- Initialize and apply the repo.
chezmoi init --apply git@github.com:tifandotme/dotfiles.gitIf chezmoi is not on your path yet, run it from ~/.local/bin/chezmoi.
On Ubuntu, chezmoi will skip the macOS-only files. Host-specific files for box still apply.
Open a new terminal session after bootstrap so new tools and shell config are on your path.