Personal dotfiles managed with chezmoi.
Platform: Linux x86_64 only.
# Step 1: install chezmoi
sh -c "$(curl -fsLS get.chezmoi.io)" -- -b ~/.local/bin
# Step 2: init and apply (prompts will appear)
~/.local/bin/chezmoi init --apply github.com/prakashsurya/dotfilesThe two-step form is required — piping directly from curl replaces stdin,
causing chezmoi to skip prompts and produce incomplete configuration.
Alternatively, if you have already cloned the repo:
./install.shThis installs chezmoi (if missing), runs chezmoi init --apply on first run,
or chezmoi apply on subsequent runs. Can be re-run safely at any time.
You will be prompted for:
- Machine profile (see Profiles); the default is
delphixon a Delphix internal-claude image andpersonalanywhere else - GitHub personal access token
delphixonly: OneLogin client_id / client_secret, role ARN, AWS app IDs (x2)- any other profile: the git email
Each machine has one profile, stored as profile in
~/.config/chezmoi/chezmoi.toml. Every machine gets the base layer; the
profile adds the rest.
| Layer | What it adds |
|---|---|
| base | fish, tmux, neovim, gh, pyenv, dev tools, language servers, Claude Code with superpowers, llm-wiki, the worktree hook, the general ~/.claude/CLAUDE.md |
delphix |
OneLogin, the [dlpx] git section, DCenter SSH hosts, git-utils, Delphix fish PATH and env, the Delphix and personal Claude marketplaces and plugins, the team-plugin update job, session-manager-plugin, the Delphix repo conventions, ~/.claude/profile/delphix.md |
personal |
~/.claude/profile/personal.md only |
Where profiles differ:
home/.chezmoidata/profiles.toml— the profile names, plus list-shaped differences: extra apt packages, Claude marketplaces, plugins and permissions.home/.chezmoiignore— files and scripts a profile doesn't get.{{ if eq .profile "..." }}blocks inside templates.home/private_dot_claude/profile/<name>.md— the profile's Claude rules, imported by~/.claude/CLAUDE.md.
Existing machines set up before profiles existed: run chezmoi init
once. It asks only for the profile and keeps every other answer. Until
then chezmoi apply refuses to run.
Changing a machine's profile: edit profile in
~/.config/chezmoi/chezmoi.toml, run chezmoi init (it asks for anything
the new profile needs), then chezmoi apply. Files only the old profile
had are left in place; delete them by hand.
Adding a profile:
- Add its name to
profileNamesinhome/.chezmoidata/profiles.tomland to the profile prompt's choices inhome/.chezmoi.toml.tmpl. - Add
[profiles.<name>]toprofiles.tomlif it needs extra packages, marketplaces, plugins or permissions. - Create
home/private_dot_claude/profile/<name>.md. - Gate any files or template blocks only it should get.
- Run
scripts/check-profile.sh <name>and the existing profiles' checks.
chezmoi edit ~/.gitconfig # edit a dotfile in your $EDITOR
chezmoi diff # preview pending changes
chezmoi apply # apply changes to $HOME
chezmoi update # pull latest from GitHub + applyTo add a new dotfile:
chezmoi add ~/.some-config-file # plain file
chezmoi add --template ~/.some-file # as a template (for machine-specific values)Then commit from the source directory:
cd $(chezmoi source-path)
git add -A && git commit -m "feat: add ..." && git pushSteps marked delphix apply only to that profile.
These are intentionally not automated:
- SSH key: Generate a key, add it to GitHub, then re-apply:
The second
ssh-keygen -t ed25519 # Add the public key to GitHub (Settings → SSH keys) and authorized_keys chezmoi applychezmoi applydetects~/.ssh/id_ed25519and, gated on that key, does the private-repo work: clonesprakashsurya/llm-wikito~/llm-wikiand, on delphix, clonesdelphix/git-utils(then pins Python 3.10.7 via pyenv) and installs the Claude plugins from the private marketplace. None of those happen on the first apply. - Set fish as default shell:
chsh -s $(which fish) - Disable SSH password login: On delphix, two files need updating — the
main config and the Delphix-specific drop-in which re-enables
keyboard-interactive auth (elsewhere, only the first
sed):Ensure your SSH key is insudo sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication no/' /etc/ssh/sshd_config sudo sed -i -e 's/^#\?ChallengeResponseAuthentication.*/ChallengeResponseAuthentication no/' \ -e 's/^#\?KbdInteractiveAuthentication.*/KbdInteractiveAuthentication no/' \ /etc/ssh/sshd_config.d/9-delphix.conf sudo systemctl restart ssh
~/.ssh/authorized_keysbefore doing this. Verify with:sudo sshd -T | grep -E 'passwordauthentication|kbdinteractiveauthentication'
- Neovim plugins: Launch
nvim— kickstart.nvim uses lazy.nvim which auto-installs plugins on first run (the nvim config is pulled unmodified from upstream via chezmoiexternal) - Jenkins tokens (delphix): Add manually after setup, to
~/.gitconfig.local:git config --file ~/.gitconfig.local dlpx.jenkins-token-selfservice-jenkins-delphix-com <token> git config --file ~/.gitconfig.local dlpx.jenkins-token-masking-jenkins-delphix-com <token> git config --file ~/.gitconfig.local dlpx.jenkins-token-saas-jenkins-eng-tools-general-aws-delphixcloud-com <token> git config --file ~/.gitconfig.local dlpx.jenkins-token-ops-jenkins-delphix-com <token> git config --file ~/.gitconfig.local dlpx.jenkins-token-selfservice-jenkins-eng-tools-prd-aws-delphixcloud-com <token> git config --file ~/.gitconfig.local dlpx.jenkins-token-ops-jenkins-eng-tools-prd-aws-delphixcloud-com <token>
- Architecture: The neovim bootstrap script downloads a Linux x86_64 binary and the fish config hardcodes the corresponding PATH entry. ARM is not supported.
- git-utils Python version: The
07-pin-git-utils-pythonchezmoi script pins Python 3.10.7. If git-utils changes its requirement, updatePYTHON_VERSIONinhome/.chezmoiscripts/run_always_after_07-pin-git-utils-python.sh. - Bundle access:
/nascomes pre-mounted on these VM images (systemdnas.mountunit +support-toolsgroup, baked into the image). No dotfiles-managed setup is needed — this superseded the oldsupport-tools-sshflow (AWS SSM jump host +grantedrole assumption), which has been removed from these dotfiles.
dotfiles/
├── README.md
├── install.sh # bootstrap wrapper (installs chezmoi, inits or applies)
├── scripts/check-profile.sh # renders one profile into a temp $HOME and checks it
├── .chezmoiroot # points chezmoi source root to home/
└── home/
├── .chezmoi.toml.tmpl # machine config (prompts on first run)
├── .chezmoidata/packages.toml # apt package list
├── .chezmoidata/profiles.toml # profile names and per-profile lists
├── .chezmoiexternal.toml.tmpl # external git repos (nvim, tmux; git-utils + llm-wiki when SSH key exists)
├── .chezmoiignore # never-track guard for ~/.claude runtime state and secrets
├── .chezmoiscripts/
│ ├── run_onchange_before_01-install-packages.sh.tmpl
│ ├── run_onchange_after_02-install-pyenv.sh
│ ├── run_onchange_after_04-install-neovim.sh
│ ├── run_onchange_after_05-install-gh.sh
│ ├── run_onchange_after_06-install-claude.sh
│ ├── run_onchange_after_10-install-claude-plugins.sh.tmpl
│ └── run_always_after_07-pin-git-utils-python.sh
├── dot_gitconfig.tmpl # → ~/.gitconfig
├── dot_tmux.conf # → ~/.tmux.conf
├── dot_onelogin-aws.config.tmpl # → ~/.onelogin-aws.config
├── dot_config/fish/config.fish.tmpl # → ~/.config/fish/config.fish
├── dot_config/go/env.tmpl # → ~/.config/go/env (GOPATH → ~/.local/share/go)
├── private_dot_ssh/config.tmpl # → ~/.ssh/config (private_ ⇒ mode 0700)
└── private_dot_claude/ # → ~/.claude (private_ ⇒ mode 0700)
├── CLAUDE.md.tmpl # → ~/.claude/CLAUDE.md (general rules; imports the profile file)
├── profile/<name>.md # → ~/.claude/profile/<name>.md (this machine's profile only)
├── modify_private_settings.json.tmpl # jq-merges dotfiles-owned keys into ~/.claude/settings.json
└── conventions/.gitkeep # → ~/.claude/conventions/ (repo-specific working rules)
.chezmoiignore is a defensive block, not a deployment filter: nothing in it
is in the source tree today. It exists so a future chezmoi add ~/.claude
cannot sweep credentials, session state, the voice corpus, or handoff notes
into this repo — which is public.