Bas' dotfiles, managed with chezmoi.
Install them with:
$ sh -c "$(curl -fsLS get.chezmoi.io/lb)" -- init -S "$HOME/.dotfiles" --apply qnimbusPersonal secrets are stored in 1Password and you'll need the 1Password CLI installed. Login to 1Password with:
$ eval $(op signin)Windows
winget install twpayne.chezmoi --source winget
⚠️ Windows users: Enable Developer Mode to allow chezmoi to create symlinks.Go to Settings → Privacy & Security → For developers → toggle Developer Mode on.
Alternatively, run this PowerShell command as Administrator:
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" /t REG_DWORD /f /v "AllowDevelopmentWithoutDevLicense" /d "1"
macOS
brew install chezmoiDebian/Ubuntu
sudo apt update && sudo apt install -y chezmoichezmoi -S "$HOME/.dotfiles" init --apply qnimbusThis clones the repo into ~/.dotfiles, renders all templates,
and writes the resulting files into your home directory.
chezmoi doctor # check environment
chezmoi diff # preview changes
chezmoi apply # apply changesThen open a new shell session to load everything.
chezmoi update # pull latest changes from GitHub
chezmoi diff # see what will change
chezmoi apply # apply updates-
Git configuration (
~/.gitconfig) is templated:- Uses
autocrlf = inputandeol = lffor consistent line endings on all OSes. - Adds a Windows-only
sshCommandoverride to forceC:/Windows/System32/OpenSSH/ssh.exe.
- Uses
-
PowerShell profile (
$PROFILE) is managed via chezmoi and can include platform-specific logic. -
Default editor for chezmoi is VS Code (
code --wait --reuse-window).
-
Edit a managed file (templates included):
chezmoi edit ~/.gitconfig -
Show the rendered version:
chezmoi cat ~/.gitconfig -
Explore the source repo:
chezmoi cd -
On Unix/macOS, you can bootstrap with a single line:
sh -c "$(curl -fsLS get.chezmoi.io/lb)" -- init -S "$HOME/.dotfiles" --apply qnimbus
This setup assumes the 1Password SSH Agent
is enabled (Developer → Use SSH agent).
Your ~/.ssh/config includes the 1Password/config automatically;
chezmoi’s .gitconfig templates a Windows-specific sshCommand to use it.
On WSL Ubuntu, two scripts run on every chezmoi apply / chezmoi update.
Each checks first without sudo and only asks for your password when something is missing or has drifted:
| Script | What it ensures |
|---|---|
run_before_11-configure-wsl-conf.sh |
Merges the keys in .chezmoitemplates/wsl.conf ([boot] systemd=true) into /etc/wsl.conf, keeping all other settings |
run_before_12-install-docker.sh |
Docker's official apt repo, docker-ce, docker-ce-cli, containerd.io, docker-buildx-plugin, docker-compose-plugin; docker and containerd enabled in systemd; you in the docker group |
Package upgrades come from the normal sudo apt upgrade, not from chezmoi.
Manual step: after the first run (or any wsl.conf change), restart WSL so systemd starts and the new group membership applies:
wsl --shutdown # from Windows; then reopen the Ubuntu terminalCheck it with:
systemctl is-system-running # "running" (or "degraded")
systemctl status docker --no-pager
docker run --rm hello-world
docker compose versionSecurity: members of the docker group can control the Docker daemon, which runs as root.
That is the same as passwordless root (for example docker run -v /:/host ...).
Only add trusted users. For stricter isolation, use rootless Docker.
Dotfiles are committed with LF endings for portability.
git config --global core.autocrlf input
git config --global core.eol lfA .gitattributes file in the repo enforces this:
* text eol=lf
Author: Bas van Wetten License: MIT