Tested on: Arch Linux, EndeavourOS
- Keep every config β shell, terminals, desktop, editors β under version control.
- One-command bootstrap on a fresh Arch desktop or Debian/Ubuntu VPS: one pasted line detects the distro, installs
ansible-core, and applies the matching Ansible profile, including linking the dotfiles. - Modular by design: each app's config lives in its own folder, symlinked individually β remove what you don't need.
- Interactive, not intrusive:
bootstrap.shandvoid-kde-setupshow every step up front and let you exclude what you don't want, instead of asking yes/no one function at a time. - Plain Ansible, nothing third-party: provisioning is declarative and idempotent, with dry runs (
-n), and can be pushed to a VPS over SSH. It uses onlyansible-corebuiltins plus two modules written in this repo. - No stray copies scattered around
$HOMEβ everything is a symlink back to this repo, except KDE settings, which are applied from one config file (see below).
The repo root holds only the tooling (Makefile, bootstrap.sh, stow.sh, lint.sh, ansible/) and docs (README.md, wiki/); everything that gets deployed lives under dotfiles/:
| Path | Description |
|---|---|
ansible/ |
Provisioning: profiles for an Arch desktop and Debian/Ubuntu VPSes (see Ansible Provisioning below). Driven by bootstrap.sh. |
dotfiles/apps/ |
Application configs (~/.config/). Theme sets for Alacritty and btop, Kitty and Rio terminal setups, Pipewire audio routing, and MangoHud performance overlay. |
dotfiles/shell/ |
Shell configuration centered on Fish β modularized aliases, custom completions, fzf plugins via fisher, plus a Tmux multiplexer setup (~/.config/). |
dotfiles/editors/ |
Editor setups for VS Code / VSCodium (settings, TS snippets, and an Open VSX extension manager β see dotfiles/editors/vscode), Zed (custom TSX/C snippets and themes), and standard Vim. |
dotfiles/kde/ |
KDE Plasma settings in one file, settings.conf: shortcuts, effects (magic lamp, blur), virtual desktops, keyboard layouts, power, default apps, panel, and session env vars. Applied by void-kde-setup, not symlinked. |
dotfiles/home/ |
Directories linked straight into ~ β ~/.vpn (OpenVPN/OpenConnect wrappers) and ~/.ucu (umu/Proton game launchers). |
dotfiles/scripts/ |
void-* utility scripts (DNS, zram, Steam, KDE setup, β¦), linked to ~/.scripts and on PATH. |
-
Bootstrap on a fresh Arch/EndeavourOS desktop (as your user) or a Debian 12+/Ubuntu 22.04+ VPS (as root or a sudo user):
bash -c "$(curl -fsSL https://raw.githubusercontent.com/void-land/void-dots/main/bootstrap.sh)"This runs whatever is on
main. If you'd rather read it first, clone and run it from the clone. It then uses that clone instead of~/.void-dots:git clone https://github.com/void-land/void-dots.git ~/.void-dots ~/.void-dots/bootstrap.sh
It detects the distro and picks the profile (
arch_desktop,debian_vpsorubuntu_vps). It installsgitandansible-core: from the distro, or a pinned version in a venv when the distro's is older than 2.14 (Ubuntu 22.04). It then clones or fast-forwards the repo, shows the steps (and package groups) so you can exclude some, and asks for any input up front: the VPS user and its password, swap size, timezone. Then it runs the playbook. Dotfiles are linked by thedotfilesstep, which runsstow.shfor you. -
Log out and back in (or reboot) so shell, group membership, and service changes take effect.
To work on the repo itself, install the tools lint.sh uses: shellcheck, shfmt, fish, and optionally ansible-lint. The fish config expects Starship. On Debian/Ubuntu releases that don't package it, install it with curl -sS https://starship.rs/install.sh | sh.
./bootstrap.sh [-p <profile>] [-y] [-n] [-t <steps>] [-x <steps>] [-u <user>] [-e <var=value>]... [-d <dir>] [-b <branch>] [-h] [-- <ansible-playbook args>]| Flag | Action |
|---|---|
-p <profile> |
Force arch_desktop, debian_vps or ubuntu_vps instead of detecting |
-y |
Unattended: no pickers or prompts. A missing required input (e.g. the VPS user) fails the run |
-n |
Dry run (ansible-playbook --check): report what would change, change nothing |
-t <steps> / -x <steps> |
Only run / skip these comma-separated step ids (no picker) |
-u <user> |
Target non-root user (VPS: the sudo user to create/configure) |
-e <var=value> |
Extra Ansible variable, repeatable (e.g. -e swap_size=4G) |
-d <dir> / -b <branch> |
Clone location (default ~/.void-dots) / branch (default main) |
-- <args> |
Passed to ansible-playbook unchanged (e.g. -- -v --diff) |
./bootstrap.sh -n # dry run with pickers
./bootstrap.sh -y -x aur,gaming # everything except AUR and gaming, no questions
./bootstrap.sh -t dotfiles # only re-link the dotfiles
./bootstrap.sh -y -u deploy -e timezone_name=UTC # VPS, unattended (user must already exist)void-arch-setup and void-debian-vps-setup were removed in favour of the Ansible profiles. Their flags map to step ids like this:
| Old command | Now |
|---|---|
void-arch-setup -s |
./bootstrap.sh |
void-arch-setup -p / -a / -m |
./bootstrap.sh -t packages / -t aur / -t pacman_config |
void-arch-setup -l / -f / -g / -e |
./bootstrap.sh -t locale / -t shell / -t gaming / -t display_manager |
void-debian-vps-setup -s |
./bootstrap.sh (on the VPS) |
void-debian-vps-setup -p / -a / -d |
./bootstrap.sh -t packages / -t user / -t docker |
void-debian-vps-setup -w / -t / -f |
./bootstrap.sh -t swap / -t timezone / -t shell |
void-debian-vps-setup -u <user> |
./bootstrap.sh -u <user> |
Once the repo is cloned and ansible-core is installed (by bootstrap.sh or by hand), the root Makefile gives the everyday commands short names. It's a thin wrapper: every target calls stow.sh, lint.sh or ansible-playbook (always with the repo's ansible/ansible.cfg). It works from any directory with make -C ~/.void-dots <target>. bootstrap.sh is still the first-run path; minimal Debian/Ubuntu images may need apt install make first.
| Target | Runs |
|---|---|
make / make help |
List targets and variables |
make stow / unstow / restow |
stow.sh -s / -u / -u then -s |
make lint / lint-fix |
lint.sh / lint.sh -w |
make arch / debian / ubuntu |
That profile on this machine (inventory/local.yml, hosts local-arch / local-debian / local-ubuntu) |
make vps HOST=<host> |
playbooks/vps.yml against <host> in ansible/inventory/hosts.yml; fails early if HOST or hosts.yml is missing |
| Variable | Effect |
|---|---|
DRY=1 |
Stow targets: dry run (stow.sh -n) |
CHECK=1 |
Ansible: dry run (--check) |
TAGS=a,b / SKIP=a,b |
Ansible: only / skip these step ids (--tags / --skip-tags) |
TARGET_USER=<user> |
Ansible: user to configure (void_target_user; required by debian/ubuntu/vps unless set in host_vars). Not USER, which your shell always sets |
HOST=<host> |
vps: inventory host to push to |
BECOME= |
Local Ansible: don't ask for the sudo password (asked by default unless you're root; vps never asks, use ARGS=-K) |
ARGS='...' |
Ansible: extra ansible-playbook arguments, passed as typed |
make restow DRY=1 # preview unlink + relink
make arch CHECK=1 TAGS=aur,gaming # dry run of two steps
make debian TARGET_USER=deploy SKIP=docker # on the VPS itself
make vps HOST=my-debian-vps ARGS='--ask-vault-pass -e swap_size=4G'Provisioning is a self-contained Ansible project that only needs ansible-core. No Galaxy roles or collections are used: tasks use ansible.builtin.*, plus two modules written in this repo (ansible/library/void_pacman.py for pacman, void_aur.py for AUR builds via makepkg). ansible.cfg stops Ansible from finding installed collections, and ./lint.sh rejects any other module.
| Profile | Inventory group | Playbook | Steps (tags) |
|---|---|---|---|
| Arch / EndeavourOS desktop | arch_desktop |
playbooks/arch_desktop.yml |
pacman_config, system_update, packages, services, display_manager, aur, locale, shell, gaming, dotfiles |
| Debian 12+ VPS | debian_vps (in vps) |
playbooks/vps.yml |
system_update, packages, user, docker, swap, timezone, shell, dotfiles |
| Ubuntu 22.04+ VPS | ubuntu_vps (in vps) |
playbooks/vps.yml |
same as Debian |
ansible/
βββ ansible.cfg # builtin-only config (run with ANSIBLE_CONFIG pointing here)
βββ site.yml # every profile, for mixed inventories
βββ playbooks/ # one playbook per profile; each role is a tagged step
βββ inventory/
β βββ local.yml # local-arch / local-debian / local-ubuntu β this machine
β βββ hosts.example.yml # template for remote hosts (copy to hosts.yml, git-ignored)
β βββ group_vars/ # all < vps < debian_vps / ubuntu_vps; arch_desktop
β βββ host_vars/ # per-host overrides and secrets (git-ignored)
βββ roles/ # one role per step, plus preflight
βββ library/ # void_pacman, void_aur
βββ module_utils/ # shared helpers for the modules
Everything a profile does is data in inventory/group_vars/: package groups (ordered {name, packages} lists), AUR packages, services, the display manager, locales, swap size, timezone. Change it there, or per host in host_vars/, or once with -e. Each profile also lists its steps in void_profile_steps; that list must match the tagged roles in its playbook (./lint.sh checks).
bootstrap.sh (see Quick start) handles this for you, and make arch / make debian / make ubuntu run the same playbooks (see Makefile). By hand, from ansible/:
export ANSIBLE_CONFIG=$PWD/ansible.cfg
ansible-playbook -i inventory/local.yml -l local-arch playbooks/arch_desktop.yml -K --check # dry run
ansible-playbook -i inventory/local.yml -l local-arch playbooks/arch_desktop.yml -K -t aur,gaming
ansible-playbook -i inventory/local.yml -l local-arch playbooks/arch_desktop.yml -K -e '{"packages_exclude_groups":["gaming"]}'cd ansible && export ANSIBLE_CONFIG=$PWD/ansible.cfg
cp inventory/hosts.example.yml inventory/hosts.yml # edit hosts, ansible_user, void_target_user
$EDITOR inventory/host_vars/my-debian-vps.yml # user_password_hash, user_ssh_keys, timezone_name, ...
ansible-vault encrypt inventory/host_vars/my-debian-vps.yml
ansible-playbook -i inventory/hosts.yml playbooks/vps.yml --list-tasks # what would run
ansible-playbook -i inventory/hosts.yml playbooks/vps.yml -l my-debian-vps --ask-vault-pass --check
ansible-playbook -i inventory/hosts.yml playbooks/vps.yml -l my-debian-vps --ask-vault-passOr from the repo root: make vps HOST=my-debian-vps ARGS=--ask-vault-pass (add CHECK=1 for a dry run).
Generate the password hash with openssl passwd -6. If ansible_user isn't root, it needs sudo: put ansible_become_password in the vaulted host_vars, or pass -K. A new user's password is only set when the user is created. To change an existing user's password, set user_update_password: true.
display_managerdisables SDDM, GDM, LightDM, ly, LXDM and greetd but doesn't stop them, so your current session survives. emptty takes over at the next boot.aurbuilds each package withmakepkgas your user, in~/.cache/void-dots/aur/<pkg>, then installs it withpacman -U. No AUR helper is needed;yayis installed as one of the packages for interactive use. Packages whose dependencies are only on the AUR aren't supported.gamingadds you to thegamemodegroup. If the kernel is 6.14+ and built withCONFIG_NTSYNC, it writes/etc/modules-load.d/ntsync.confand loadsntsync; otherwise it says so and skips. To verify:gamemoded -tandlsmod | grep -i ntsync.dockerinstallsdocker.io, plus compose (docker-compose-v2on Ubuntu,docker-composeon Debian, which is the old v1docker-composecommand on bookworm) anddocker-buildxwhen available. It writes log rotation to/etc/docker/daemon.jsononly if that file doesn't exist, and adds the user todocker.swapis skipped when any swap is already active. Otherwise it creates/swapfile(swap_size, default 2G) and setsvm.swappiness=10.usercopies root'sauthorized_keysto the new user whenuser_ssh_keysis empty and the user has none.
Symlinks the contents of dotfiles/home/, dotfiles/apps/, dotfiles/shell/, and dotfiles/editors/ into their target locations under $HOME and ~/.config/, and links dotfiles/scripts/ to ~/.scripts. VS Code configs from dotfiles/editors/vscode/configs/ are linked into both ~/.config/VSCodium/User/ and ~/.config/Code - OSS/User/.
Link (stow) configurations:
./stow.sh -s # or: make stowCreates the necessary directories under ~/.config/ and symlinks every tracked file back into this repo. Works from any directory. An existing real file or directory at a target is moved aside to <name>.bak.<timestamp> rather than overwritten. Symlinks that point into the repo at files that no longer exist are pruned first. Links that already point at the right place are skipped silently, so a re-run only prints what it actually changed.
KDE settings are not touched; run void-kde-setup yourself to apply them (see below).
Unlink (unstow) configurations:
./stow.sh -u # or: make unstowRemoves only the symlinks that point back into this repo, detaching your system without deleting the source files. Anything else at a target path is left untouched.
Preview without changing anything: add -n (dry run) to either command, e.g. ./stow.sh -n -s (make stow DRY=1). make restow unlinks and then links again.
KDE rewrites its rc files during normal use, so they aren't symlinked. Every setting worth keeping lives in dotfiles/kde/settings.conf as plain bash variables, and void-kde-setup writes them with kwriteconfig6, reloading KWin over D-Bus where it can. The file covers:
- Shortcuts (
KDE_SHORTCUTS): only the ones that differ from Plasma's defaults, e.g.Meta+Qβ Alacritty,Meta+Cclose window,Meta+Spacenext keyboard layout. - Effects (
KWIN_EFFECTS_ENABLE/_DISABLE): magic lamp and blur on, squash off. - Virtual desktops (
KDE_DESKTOPS): Browsers, Code, Social, Gaming. - Session env (
KDE_SESSION_ENV): written to~/.config/plasma-workspace/env/void-env.sh, e.g.KWIN_DRM_DISABLE_TRIPLE_BUFFERING=1. - Everything else (
KDE_CONFIG):file|group|key|valuerows for keyboard layouts, mouse, power, Baloo, Dolphin, the file dialog, and so on, plus default apps (KDE_MIME_DEFAULTS), theme, and panel (height, pager, pinned launchers viavoid-kde-panel).
void-kde-setup # pick steps to exclude, apply the rest
void-kde-setup -y # apply everything, no picker
void-kde-setup -o shortcuts,effects # only some steps (-l lists them)
void-kde-setup -n # dry run
void-kde-setup -c # drift check: what changed in System Settings?| Flag | Action |
|---|---|
-o <steps> |
Run only these steps, comma-separated |
-y |
Apply every step without the picker |
-n |
Dry run: print what would be written |
-R |
Don't restart plasmashell after the panel step |
-c |
Compare the live desktop to settings.conf and list differences |
-l |
List steps |
-h |
Show help |
Shortcuts and session env vars take effect at the next login. KWin hosts kglobalaccel and has no reload call for it. Everything else applies live. Per-install state, like tiling layouts (keyed by desktop Γ monitor UUID), is deliberately not tracked.
After changing something in System Settings that you want to keep, run void-kde-setup -c and copy the reported value into settings.conf.
| Category | Utilities Configured |
|---|---|
| Shell & Prompt | Fish Shell, Starship Prompt, Bash |
| Terminals | Alacritty, Kitty, Rio |
| Multiplexers | Tmux |
| Editors | VsCode, Zed, Vim |
| System & Monitoring | btop, htop, MangoHud |
| Desktop Suite | KDE Plasma (KWin, Dolphin, Baloo, PowerDevil) |
| Audio | Pipewire + Wireplumber (DeepFilter & Echo-Canceling) |
| Media Player | vlc |
| Gaming | Steam, MangoHud, GameMode, NTSync |