ChezMoi

chezmoi helps you manage your personal configuration files (dotfiles, like ~/.gitconfig) across multiple machines.

Mainly act as wrapper around git and the management of a special repo dedicated to .config files. All regular git command are available when steping inside the chezmoi repo which is accessible with chezmoi cd.

see also

# Install

$ nix profile add nixpkgs#chezmoi

# Quickstart

$ chezmoi init
$ chezmoi add ~/.bashrc
$ chezmoi -v apply

# Git Sync

Leverage a git repo to syncronize everything Create a dotfile repo on github and attach it to chezmoi

$ chezmoi cd
$ git remote add origin git@github.com:yduf/dotfiles.git
# and push

# Multi-Host

Use the Git repo to share and synchronize these config accross multiple computers. Reference the repo when setting up the new computer.

$ chezmoi init git@github.com:yduf/dotfiles.git
$ chezmoi diff
$ chezmoi apply -v
Written on February 1, 2026, Last update on February 1, 2026
config nix package