[{"content":"This walks through scaffolding a fresh Homie repo, putting your first dotfile under management, and bootstrapping the same environment on a second machine. About five minutes if you already have git + GitHub set up.\n1. Install homie # One static binary, no runtime, no dependencies:\ncurl -fsSL https://homie.sh/install.sh | bash Prefer not to pipe a script? See Install for manual download, version pinning, and building from source.\n2. Scaffold a user environment repo # homie init writes a starter repo — homie.toml, a bootstrap.sh, an example dotfile, an example template, and a sample script — that\u0026rsquo;s yours to grow into.\nhomie init ~/dotfiles It\u0026rsquo;ll ask for your name, email, and GitHub username so it can wire up bootstrap.sh with the right clone URL.\n3. Push it to GitHub # Create an empty repo at github.com/\u0026lt;you\u0026gt;/dotfiles (or whatever you named it during homie init), then:\ncd ~/dotfiles git init -b main git add -A git commit -m \u0026#34;initial scaffold\u0026#34; git remote add origin git@github.com:\u0026lt;you\u0026gt;/dotfiles.git git push -u origin main 4. Apply on the machine you\u0026rsquo;re on # Reconcile your $HOME with the scaffolded repo:\nhomie apply You\u0026rsquo;ll see Charm-styled progress as Homie installs the listed packages, symlinks your dotfiles, renders your templates, and runs your scripts.\n5. Bootstrap on a fresh machine # On any other Linux or macOS box — bare metal, VM, container, Codespace — run:\ncurl https://raw.githubusercontent.com/\u0026lt;you\u0026gt;/dotfiles/main/bootstrap.sh | bash That downloads the right homie binary for the OS and CPU, clones your repo, and runs homie apply. Done.\nbootstrap.sh makes sure git is present first. On Linux it also installs ca-certificates if needed. On macOS git comes from the Xcode Command Line Tools (xcode-select --install), and Homebrew is not required — install it only if you declare [packages].\nEven piped into bash, it hands your terminal down to homie, so a sudo password prompt from one of your setup scripts reaches you instead of failing. Run it in a container or CI, where there\u0026rsquo;s no terminal to hand down, and nothing changes.\nWhere to next? # Commands — every homie subcommand explained. homie.toml — full config reference. Dotfiles — symlinks, templates, tag-gated trees, overrides. Recipes — concrete patterns for common setups. ","externalUrl":null,"permalink":"/docs/quickstart/","section":"Documentation","summary":"This walks through scaffolding a fresh Homie repo, putting your first dotfile under management, and bootstrapping the same environment on a second machine. About five minutes if you already have git + GitHub set up.\n1. Install homie # One static binary, no runtime, no dependencies:\ncurl -fsSL https://homie.sh/install.sh | bash Prefer not to pipe a script? See Install for manual download, version pinning, and building from source.\n","title":"Quick start","type":"docs"},{"content":"The fastest path is the install script, but Homie is a single static binary — there\u0026rsquo;s nothing stopping you from grabbing it any way you like.\nInstall script (recommended) # Detects your OS (Linux or macOS) and arch, downloads the matching release, verifies its SHA256, and drops homie into /usr/local/bin (or ~/.local/bin if you\u0026rsquo;re not root):\ncurl -fsSL https://homie.sh/install.sh | bash The same one-liner works on Linux and macOS (Apple Silicon and Intel) — the script picks homie-linux-* or homie-darwin-* for you.\nThe script honours two environment overrides:\nHOMIE_RELEASE — release tag to install (default: latest). HOMIE_BINDIR — install location (default: /usr/local/bin when root, $HOME/.local/bin otherwise). Pin to a specific release # curl -fsSL https://homie.sh/install.sh | HOMIE_RELEASE=v0.1.0 bash Install to a custom location # curl -fsSL https://homie.sh/install.sh | HOMIE_BINDIR=$HOME/bin bash Manual download # If you\u0026rsquo;d rather not pipe a script into your shell, grab the binary directly. Each release publishes a binary per OS/arch (homie-linux-\u0026lt;arch\u0026gt;, homie-darwin-\u0026lt;arch\u0026gt;) plus a SHA256SUMS file that covers them all.\nOS=$(uname -s | tr \u0026#39;[:upper:]\u0026#39; \u0026#39;[:lower:]\u0026#39;) # linux or darwin ARCH=$(uname -m | sed \u0026#39;s/x86_64/amd64/;s/aarch64/arm64/\u0026#39;) BASE=https://github.com/kurowski/homie/releases/latest/download BIN=\u0026#34;homie-${OS}-${ARCH}\u0026#34; cd \u0026#34;$(mktemp -d)\u0026#34; curl -fsSL -o \u0026#34;$BIN\u0026#34; \u0026#34;$BASE/$BIN\u0026#34; curl -fsSL -o SHA256SUMS \u0026#34;$BASE/SHA256SUMS\u0026#34; # Download under the real name so the checklist matches. macOS has no # sha256sum, so filter to our line and fall back to shasum. grep \u0026#34; ${BIN}\\$\u0026#34; SHA256SUMS \u0026gt; homie.sum if command -v sha256sum \u0026gt;/dev/null; then sha256sum -c homie.sum; else shasum -a 256 -c homie.sum; fi chmod +x \u0026#34;$BIN\u0026#34; sudo mv \u0026#34;$BIN\u0026#34; /usr/local/bin/homie homie --version Swap latest for a tag (e.g. https://github.com/kurowski/homie/releases/download/v0.1.0) to pin a specific version.\nBuild from source # Homie has no cgo requirement and no runtime dependencies — a recent Go toolchain is enough.\ngit clone https://github.com/kurowski/homie.git cd homie make build # CGO_ENABLED=0 go build -ldflags=... -o homie ./cmd/homie sudo install -m 0755 homie /usr/local/bin/homie homie --version Or skip the clone with go install:\ngo install github.com/kurowski/homie/cmd/homie@latest That drops homie into $(go env GOBIN) (or $(go env GOPATH)/bin if GOBIN is unset). Make sure that directory is on your PATH.\nThe version string baked into the binary will say (devel) with go install; the make build path uses git describe so homie --version prints the tag.\nVerifying the install # homie --version homie doctor homie doctor runs a no-op health check — useful even right after install to confirm the binary is wired up correctly.\nUpdating # homie updates itself:\nhomie selfupdate # replace the binary with the latest release homie selfupdate --check # just see whether a newer release exists It downloads the right binary for your OS and architecture, verifies it against the release\u0026rsquo;s SHA256SUMS, and replaces the binary in place — the same checks the install script performs. A binary in /usr/local/bin usually needs sudo homie selfupdate; the default user install in ~/.local/bin doesn\u0026rsquo;t.\nRe-running the install script does the same job, and is the way to pin or downgrade:\ncurl -fsSL https://homie.sh/install.sh | bash # latest curl -fsSL https://homie.sh/install.sh | HOMIE_RELEASE=v0.2.0 bash # pin / downgrade homie --version # confirm Builds from source update the way they were installed — re-run go install …@latest, or git pull and make build from the checkout. homie selfupdate refuses to overwrite a from-source build, so a dev binary can\u0026rsquo;t be clobbered by accident.\nIf homie --version doesn\u0026rsquo;t show the version you just installed, a copy left on PATH by a different install method is probably shadowing it — which homie to find which one wins.\nRe-running your environment repo\u0026rsquo;s bootstrap.sh also pulls the latest homie before applying, but that\u0026rsquo;s a full reapply of your environment, not just a binary bump — homie selfupdate when you only want the binary.\nAfter upgrading, refresh the generated files in your environment repo:\ncd ~/dotfiles \u0026amp;\u0026amp; homie init --update bootstrap.sh is versioned against homie — it encodes which release URL to fetch and how to hand your terminal to sudo — so a repo scaffolded against an older release keeps launching the old way until you refresh it. --update is a no-op when there\u0026rsquo;s nothing to do, and stops with a diff rather than clobbering anything you\u0026rsquo;ve edited. See Commands.\n","externalUrl":null,"permalink":"/docs/install/","section":"Documentation","summary":"The fastest path is the install script, but Homie is a single static binary — there’s nothing stopping you from grabbing it any way you like.\nInstall script (recommended) # Detects your OS (Linux or macOS) and arch, downloads the matching release, verifies its SHA256, and drops homie into /usr/local/bin (or ~/.local/bin if you’re not root):\ncurl -fsSL https://homie.sh/install.sh | bash The same one-liner works on Linux and macOS (Apple Silicon and Intel) — the script picks homie-linux-* or homie-darwin-* for you.\n","title":"Install","type":"docs"},{"content":"Every Homie command except homie init and homie selfupdate expects to be run from the root of a user environment repo, or with HOMIE_REPO set to its path.\nhomie init # Interactively scaffolds a brand new user environment repo. Run this once on the first machine. Subsequent machines clone the result via bootstrap.sh.\nhomie init ~/dotfiles You can also pass flags non-interactively (useful in CI):\nhomie init \\ --name \u0026#34;Scout Homes\u0026#34; \\ --email scout@homie.sh \\ --github-user scouthomes \\ --github-repo dotfiles \\ --profile personal \\ --shell zsh \\ ~/dotfiles homie init --update — refresh generated files # Init never overwrites; --update is the supported way back into an existing repo. It re-renders the files Homie keeps current across releases — today just bootstrap.sh, which tracks how the current homie expects to be launched — and leaves your seeds (homie.toml, home/, scripts/) untouched.\ncd ~/dotfiles homie init --update It derives its answers rather than asking: identity from homie.toml, GitHub user and repo from the origin remote (--github-user / --github-repo override, for a repo with no remote), and the clone destination from where the repo actually sits. Keep your repo at ~/Documents/dotfiles instead of ~/dotfiles and bootstrap.sh picks that up — $HOME-relative, so it stays portable across machines:\nREPO_DIR=\u0026#34;${HOMIE_REPO:-$HOME/Documents/dotfiles}\u0026#34; Move the repo, re-run --update, commit. Run it from anywhere inside the repo, or pass the path.\nOnly a location under $HOME is derived, since that\u0026rsquo;s all another machine is guaranteed to share — a repo outside $HOME (a build directory, a CI checkout) keeps the $HOME/\u0026lt;repo\u0026gt; default. Use --repo-dir to set it explicitly:\nhomie init --update --repo-dir /opt/dotfiles Generated files carry a homie:generated stamp with the writing version and a digest, so update can tell an untouched file from an edited one:\nState Meaning current already what this homie writes — no-op updated untouched since an older homie wrote it; refreshed created missing; written fresh skipped edited locally, or unstamped — diff shown, nothing written --force overwrites a skipped file. Deleting the homie:generated line opts a file out for good. Nothing is committed for you — review with git diff.\nhomie apply # Full reconciliation pass — detect → load config → run pre-scripts → install native packages → install declared backends (alphabetical order: brew, flatpak, snap, \u0026hellip;) → clone/update [externals] git repos → materialize home/ (symlinks + rendered templates) → run scripts → summary. Backend phases skip with a warning when the tool isn\u0026rsquo;t on PATH or the backend name isn\u0026rsquo;t recognized. Externals run before the home phase so templates and symlinks can point into a checkout that\u0026rsquo;s guaranteed to exist; entries with a ref are held at it, unpinned entries fast-forward to the remote default branch (see Config).\nhomie apply apply is idempotent. Running it twice in a row should produce a clean summary with nothing changed.\nFlags:\n--skip-packages — skip the native and backend package phases. --skip-externals — skip the externals (git clone/update) phase. --skip-scripts — skip pre-scripts and post-scripts. --no-tty — force plain output (no Bubble Tea spinner). Auto-detected when stdout isn\u0026rsquo;t a terminal; this flag overrides the detection. --verbose — raise log level to Debug. homie home # Just the home phase of apply. Walks home/ and any active sibling home.tag-\u0026lt;X\u0026gt;[.tag-\u0026lt;Y\u0026gt;...]/ tree, then for each file:\nPlain files are symlinked into $HOME at the matching path. If a real file already lives at the destination, it\u0026rsquo;s backed up to \u0026lt;path\u0026gt;.homie-backup-\u0026lt;timestamp\u0026gt; before linking — Homie never silently overwrites your data. Files ending in .tmpl are rendered through Go text/template + Sprig with the active data set and written into $HOME with the suffix stripped. Source mode is preserved (so home/bin/foo.sh.tmpl renders executable). When two trees claim the same target, the more-specific tree (more required tags in its directory name) wins; same-specificity collisions error out so you can disambiguate. See Dotfiles for the full model.\nFlags:\n--dry-run — write nothing. Prints the plan (every link and render target with its winning source), then the full rendered content of every active template. Use it to preview how templates resolve on this host before applying; exits non-zero if any template fails to render. homie render # Renders a single .tmpl file to stdout — no writes, no UI chrome, safe to pipe. The data is exactly what a real homie home would use on this host: active tags, [vars], user identity, distro, and the hasTag helper, so the preview is faithful.\nhomie render home/.gitconfig.tmpl The path is tried as given first, then relative to the repo root, so the command works from anywhere. A parse or execution error exits non-zero — handy as a template check in CI, and it gives automated agents a feedback loop for template authoring without touching your real $HOME. To preview every active template at once, use homie home --dry-run.\nhomie context # Prints the exact data passed to every template render on this host, as JSON. The keys match the template fields one-to-one — a key named \u0026quot;Email\u0026quot; means a template may reference {{ .Email }} — so one read tells you (or an agent) every field a template can use, with the values it would resolve to right now.\n$ homie context { \u0026#34;Name\u0026#34;: \u0026#34;Scout Homes\u0026#34;, \u0026#34;Email\u0026#34;: \u0026#34;scout@homie.sh\u0026#34;, \u0026#34;Profile\u0026#34;: \u0026#34;personal\u0026#34;, \u0026#34;DefaultShell\u0026#34;: \u0026#34;zsh\u0026#34;, \u0026#34;Distro\u0026#34;: \u0026#34;fedora\u0026#34;, \u0026#34;Arch\u0026#34;: \u0026#34;amd64\u0026#34;, \u0026#34;IsContainer\u0026#34;: false, \u0026#34;IsRoot\u0026#34;: false, \u0026#34;Tags\u0026#34;: [\u0026#34;amd64\u0026#34;, \u0026#34;coach\u0026#34;, \u0026#34;fedora\u0026#34;, \u0026#34;personal\u0026#34;], \u0026#34;Vars\u0026#34;: { \u0026#34;EDITOR\u0026#34;: \u0026#34;nvim\u0026#34; } } Output is always JSON, nothing else on stdout — safe to pipe into jq. The hasTag helper and the Sprig function library are callable from templates but aren\u0026rsquo;t data fields, so they don\u0026rsquo;t appear here. Pairs naturally with the preview commands: introspect the context, then check a template with homie render or homie home --dry-run. See Dotfiles for the full data reference.\nhomie install # Just the package phases. Resolves [packages].all + [packages].\u0026lt;distro\u0026gt; plus matching [packages.\u0026quot;tag:X\u0026quot;] against the detected package manager and installs missing entries, then runs the non-native backend phases ([packages.brew], [packages.flatpak], [packages.snap]) in the same order. On unsupported distros, prints a friendly \u0026ldquo;not yet supported\u0026rdquo; notice and skips the native phase. When a backend\u0026rsquo;s tool isn\u0026rsquo;t on PATH, prints a warning and skips that backend.\nhomie run # Just the script phase. Runs scripts/*.sh in lexical order, each as a separate bash subprocess with HOMIE_TAGS, HOMIE_REPO, HOMIE_HOME, and every [vars] entry exported to its environment.\nScripts are user code — Homie doesn\u0026rsquo;t enforce idempotency. Convention is that each script is individually idempotent (e.g. command -v X \u0026amp;\u0026amp; exit 0 at the top).\nRun from a terminal, scripts inherit your stdin/stdout/stderr, so an in-band prompt (a sudo password, gh auth login, a package-manager confirmation) reaches you directly. When stdin isn\u0026rsquo;t a terminal (CI, piped, redirected), output is captured per-script and stdin is /dev/null, so a script that would block on a prompt fails fast instead of hanging.\nSibling directories named scripts.tag-\u0026lt;X\u0026gt;[.tag-\u0026lt;Y\u0026gt;...]/ run only when all of their tags are active (AND), mirroring the home.tag-X/ trees. Plain scripts/ always runs. Scripts are ordered by filename across every active tree — the numeric prefix is the single global order, so a scripts.tag-fedora/05-repos.sh runs at position 05 next to a scripts/04-base.sh. The tag trees decide which scripts participate, not a separate ordered stream. The same filename appearing in two active trees is a hard error — unlike the home/ tree, scripts have no \u0026ldquo;more-specific source wins\u0026rdquo; override rule, because an imperative script has no single source of truth to override. See Dotfiles for the parallel file-tree model.\nFlags:\n--phase=post (default) — every script whose name does NOT begin with pre-. The \u0026ldquo;scripts\u0026rdquo; step of homie apply. --phase=pre — only pre-*.sh scripts. The \u0026ldquo;pre-scripts\u0026rdquo; step of homie apply; useful for setting up third-party package sources before homie install. --phase=all — pre-scripts then post-scripts, matching the order homie apply uses. homie status # Read-only view of what apply would do. No changes, no installs, no file writes. Useful for previewing, for CI checks, or for confidence before a real run.\nFlags:\n--json — emit the same information as one JSON document: detected environment, repo path, identity, profile, active tags, the native and per-backend package lists, config warnings, and the error/warning counts from a doctor pass. When no environment repo is found, \u0026quot;repo\u0026quot; is null and the command still exits zero; a HOMIE_REPO that points at a directory without a homie.toml is an error instead. homie doctor # Walks the repo and reports:\nBroken symlinks (target doesn\u0026rsquo;t exist). Symlinks in $HOME that point outside the repo. Missing packages. Unrendered templates. Scripts that aren\u0026rsquo;t executable, and filename collisions between active script trees. Tag-gated home.tag-X/ and scripts.tag-X/ trees that aren\u0026rsquo;t active on this host, and which multi-tag [packages.\u0026quot;tag:X.tag:Y\u0026quot;] blocks are active (informational). Unknown distro detection. Exit code is 0 if everything is clean, 1 otherwise — useful as a post-deploy health check in CI.\nFlags:\n--json — emit the findings as structured records instead of the styled report:\n{ \u0026#34;findings\u0026#34;: [ { \u0026#34;severity\u0026#34;: \u0026#34;warn\u0026#34;, \u0026#34;area\u0026#34;: \u0026#34;packages\u0026#34;, \u0026#34;message\u0026#34;: \u0026#34;1 not installed: ripgrep\u0026#34; } ], \u0026#34;errors\u0026#34;: 0, \u0026#34;warnings\u0026#34;: 1 } Severity is error, warn, or info; area is the check group (env, config, home, link, render, packages, scripts). The exit-code rule is unchanged — parse the document, then check the exit code. A non-zero exit caused by error findings still emits one valid JSON document on stdout; a failure before the checks run (no repo, unreadable config) prints to stderr with no JSON.\nhomie bootstrap # Installs the minimum tools needed for apply to proceed: git and ca-certificates. Called by bootstrap.sh on a fresh machine before the user repo is cloned. Most users never invoke this directly.\nhomie selfupdate # Updates the homie binary itself to the latest release. Resolves the newest tag, downloads the binary for your OS and architecture, verifies it against the release\u0026rsquo;s SHA256SUMS, and atomically replaces the running binary — the same checks the install script performs. homie self-update is an alias.\nhomie selfupdate # update in place homie selfupdate --check # just report whether a newer release exists Updating writes to the directory homie lives in: a binary in /usr/local/bin usually needs sudo homie selfupdate, while the default user install in ~/.local/bin needs no root. A build from source or a Homebrew-managed binary refuses to self-update — rebuild it, or let the tool that installed it do the upgrade.\nFlags:\n--check — report whether a newer release exists without installing it. Help topics # Beyond per-command --help, the binary ships one reference topic:\nhomie help templating — the template data fields, the hasTag helper, Sprig availability, and the missing-key rules. The offline version of the Dotfiles reference; homie help template and homie help templates resolve to the same page. Global flags # These work on every subcommand:\n--repo \u0026lt;path\u0026gt; — point at a user repo other than the cwd (or use HOMIE_REPO=\u0026lt;path\u0026gt;). --no-tty — force plain output. --verbose — Debug-level logging. --version — print version and exit. ","externalUrl":null,"permalink":"/docs/commands/","section":"Documentation","summary":"Every Homie command except homie init and homie selfupdate expects to be run from the root of a user environment repo, or with HOMIE_REPO set to its path.\nhomie init # Interactively scaffolds a brand new user environment repo. Run this once on the first machine. Subsequent machines clone the result via bootstrap.sh.\nhomie init ~/dotfiles You can also pass flags non-interactively (useful in CI):\n","title":"Commands","type":"docs"},{"content":"homie.toml lives at the root of your user environment repo. It is the only configuration Homie reads. Everything else — your home/ tree and scripts/ — is on disk, where you can see and version it.\nMinimal valid file:\n[user] name = \u0026#34;Scout Homes\u0026#34; email = \u0026#34;scout@homie.sh\u0026#34; That\u0026rsquo;s it. Every other table is optional. The sections below describe each one in order.\n[user] # Identity. Both fields are required.\n[user] name = \u0026#34;Scout Homes\u0026#34; email = \u0026#34;scout@homie.sh\u0026#34; Templates see these as {{ .Name }} and {{ .Email }}. Scripts see neither — pass identity in via [vars] if scripts need it.\n[profile] # Selects which kind of machine you\u0026rsquo;re configuring. Affects rendering and tag membership; nothing else.\n[profile] name = \u0026#34;personal\u0026#34; # personal | work | devcontainer | ... default_shell = \u0026#34;zsh\u0026#34; profile.name becomes an active tag automatically — so a template can branch on {{ if hasTag \u0026quot;work\u0026quot; }} and a script can read $HOMIE_TAGS.\nBoth fields default to empty if omitted. Convention is personal, work, devcontainer, or whatever short label distinguishes the machines you actually use.\n[packages] # Native packages to install via the detected package manager (apt on Ubuntu/Debian, dnf on Fedora, pacman on Arch, brew on macOS, pkg on Termux). Idempotent — each package is checked with dpkg -s / rpm -q / pacman -T / brew list before install.\n[packages] all = [\u0026#34;git\u0026#34;, \u0026#34;zsh\u0026#34;, \u0026#34;neovim\u0026#34;, \u0026#34;tmux\u0026#34;, \u0026#34;ripgrep\u0026#34;, \u0026#34;fzf\u0026#34;] fedora = [\u0026#34;util-linux-user\u0026#34;, \u0026#34;fd-find\u0026#34;] ubuntu = [\u0026#34;fd-find\u0026#34;] debian = [\u0026#34;fd-find\u0026#34;] arch = [\u0026#34;fd\u0026#34;] macos = [\u0026#34;fd\u0026#34;, \u0026#34;coreutils\u0026#34;, \u0026#34;firefox/cask\u0026#34;] termux = [\u0026#34;fd\u0026#34;, \u0026#34;openssh\u0026#34;] all runs on every platform. Per-platform keys (fedora, ubuntu, debian, arch, macos, termux) merge on top — useful for the rename-on-this-platform case (fd vs fd-find) or for platform-specific tools.\nOn Arch, [packages] covers the official repos. Homie never refreshes the package database — pacman -Sy followed by an install is the partial-upgrade footgun, and a full pacman -Syu isn\u0026rsquo;t a call homie apply should make for you. Keep the system current the way you normally would; if a package can\u0026rsquo;t be found, Homie says so and points at pacman -Syu. The AUR is out of scope: it needs a helper that isn\u0026rsquo;t part of a base install, so drive it from a scripts/ step if you want it.\nName packages, not groups. A pacman group (xorg) is a label on a set of packages rather than something installable, and nothing in the local package database records that you asked for one — so Homie can\u0026rsquo;t tell a fully-installed group from a missing one. A repo-qualified name like extra/tmux behaves the same way. On a machine whose package database is current, listing either is only noisy: homie doctor warns it isn\u0026rsquo;t installed and homie apply re-announces it every run. On a machine that hasn\u0026rsquo;t synced — a fresh container, an arch-chroot — pacman can\u0026rsquo;t resolve the name at all, so the package phase fails every run even though every member is already there. List the packages you actually want. (base-devel is fine: it\u0026rsquo;s a regular package these days, not a group.)\nOn macOS, native packages install through Homebrew. A GUI app (a Homebrew cask) is named with a /cask suffix — firefox/cask installs with brew install --cask firefox; a bare name is a formula. A typo\u0026rsquo;d suffix is reported by homie doctor before any install runs.\nbrew is optional. macOS ships no system package manager, so if you only manage dotfiles (no [packages]), you never need it — homie apply and homie doctor won\u0026rsquo;t complain. If brew isn\u0026rsquo;t on PATH when packages are declared, the native phase warns and skips instead of failing; install brew (or add a scripts/pre-*.sh that does) to have those packages applied.\nOn Termux (the Android terminal app), native packages install through pkg, Termux\u0026rsquo;s wrapper over its own apt repos. Termux runs unprivileged with no root and no sudo, so installs never escalate. Everything else — dotfiles, templates, scripts, externals — works as it does everywhere else against Termux\u0026rsquo;s $HOME.\nOn unsupported distros, the package phase prints a friendly notice and skips. The rest of homie apply continues normally.\nTag-keyed package lists # Sub-tables of the form [packages.\u0026quot;tag:\u0026lt;name\u0026gt;\u0026quot;] contribute only when the matching tag is active for the current host. Useful when a work laptop and a personal laptop share a base set but each needs its own extras.\n[packages] fedora = [\u0026#34;git\u0026#34;, \u0026#34;zsh\u0026#34;, \u0026#34;neovim\u0026#34;] # base, always [packages.\u0026#34;tag:work\u0026#34;] fedora = [\u0026#34;kubectl\u0026#34;, \u0026#34;helm\u0026#34;, \u0026#34;terraform\u0026#34;] [packages.\u0026#34;tag:personal\u0026#34;] fedora = [\u0026#34;steam\u0026#34;, \u0026#34;tailscale\u0026#34;] Resolution: the final install set is [packages] plus every [packages.\u0026quot;tag:X\u0026quot;] sub-table where X is in the active tag set (auto-detected, profile-derived, or [tags].extra). Each sub-table honors the same per-distro split as the base — [packages.\u0026quot;tag:work\u0026quot;].fedora and [packages.\u0026quot;tag:work\u0026quot;].ubuntu both work.\nOrder is deterministic: base all, base \u0026lt;distro\u0026gt;, then each matching block in alphabetical key order (its all, then its \u0026lt;distro\u0026gt;). Duplicates across these sources are removed on insertion, so a package named in both base and a tag sub-table installs exactly once. Tags with no matching sub-table contribute nothing — they aren\u0026rsquo;t an error.\nRequiring several tags (AND) # Chain tag: segments with . to require all of them — the same .-delimited convention the home.tag-X.tag-Y/ and scripts.tag-X.tag-Y/ trees use:\n# snap is Ubuntu-only and AWS is a personal-machine thing: [packages.\u0026#34;tag:personal.tag:ubuntu\u0026#34;.snap] all = [\u0026#34;aws-cli/classic\u0026#34;] # desktop apps only on personal desktops: [packages.\u0026#34;tag:personal.tag:desktop\u0026#34;.snap] all = [\u0026#34;gimp\u0026#34;, \u0026#34;spotify\u0026#34;] [packages.\u0026#34;tag:work.tag:ubuntu\u0026#34;.flatpak] all = [\u0026#34;us.zoom.Zoom\u0026#34;] A chained block applies only when every listed tag is active. Tag order doesn\u0026rsquo;t matter (tag:personal.tag:ubuntu and tag:ubuntu.tag:personal are the same block). Single-tag [packages.\u0026quot;tag:X\u0026quot;] is just the one-tag form of the same rule. Nested backends (.snap, .flatpak, .brew) work under a chained key exactly as under a single-tag one.\nA malformed key — a segment that isn\u0026rsquo;t tag:\u0026lt;name\u0026gt;, an empty tag:, a trailing . — is a hard error at load, not a silent no-op. homie doctor lists which AND-blocks were active for the current host.\n[externals] # External git repos to keep on disk — zsh/tmux/nvim plugins, themes, editor distributions. Each entry is keyed by its destination path; homie apply clones it when missing and updates it in place when present, replacing the hand-rolled clone-or-pull script this usually takes.\n[externals.\u0026#34;~/.zsh/plugins/zsh-autosuggestions\u0026#34;] repo = \u0026#34;https://github.com/zsh-users/zsh-autosuggestions\u0026#34; ref = \u0026#34;v0.7.1\u0026#34; # pinned: checked out and held; never auto-moves [externals.\u0026#34;~/.tmux/plugins/tpm\u0026#34;] repo = \u0026#34;https://github.com/tmux-plugins/tpm\u0026#34; # no ref: track the remote default branch, fast-forward on each apply # tag-gated, exactly like [packages.\u0026#34;tag:X\u0026#34;] (AND across tags) [externals.\u0026#34;tag:desktop\u0026#34;.\u0026#34;~/.config/some-theme\u0026#34;] repo = \u0026#34;https://github.com/example/some-theme\u0026#34; repo (required) — the clone URL. ref (optional) — a branch, tag, or commit to pin. A pinned checkout is detached at the ref and held there until you change the value. Prefer pinning: an unpinned plugin that follows upstream HEAD on every apply can break the shell you\u0026rsquo;d use to debug it. No ref — track the remote default branch. Each apply fast-forwards; a checkout with local commits or edits fails the fast-forward and surfaces as a phase error instead of being clobbered. Destinations must start with ~/ or $HOME/ or be absolute. The same no-surprises rules as the rest of Homie apply: a destination that exists but isn\u0026rsquo;t a git checkout is an error (your data is never overwritten), and so is a checkout whose origin doesn\u0026rsquo;t match repo.\nWhen two entries claim the same destination, the one requiring more tags wins (a plain entry counts as zero) — the same more-specific-wins rule as the home/ trees. Two active entries at equal specificity with different settings are an error. In a per-host overlay, an entry replaces the base entry for the same destination outright — handy for pinning a different ref on one machine.\nKeep externals destinations out of the directories home/ manages: the home phase owns those paths and the two will fight over them.\nSkip the phase with homie apply --skip-externals.\n[tags] # User-defined tags layered on top of the auto-detected ones. Tags are how templates and scripts branch on machine type without hard-coding distro checks.\n[tags] extra = [\u0026#34;laptop\u0026#34;] Active tags on every run are the union of:\nDetected: the platform (ubuntu, debian, fedora, arch, macos, termux), the CPU architecture (amd64, arm64), the short hostname (so hasTag \u0026quot;coach\u0026quot; works with no config), plus container and root when those apply. Profile: profile.name, if set. Extra: everything in tags.extra. The arch tag is Arch Linux, the platform. The CPU is amd64 / arm64 and is also available as {{ .Arch }} in templates.\nDuplicates are deduped; the resulting list is sorted, exposed to templates as {{ .Tags }}, and to scripts as $HOMIE_TAGS (space-joined).\n[vars] # Free-form string key/value pairs. Use these for anything Homie\u0026rsquo;s core schema doesn\u0026rsquo;t cover.\n[vars] WORK_EMAIL = \u0026#34;scout@work.example.com\u0026#34; EDITOR = \u0026#34;nvim\u0026#34; DOTFILES = \u0026#34;https://github.com/scouthomes/dotfiles\u0026#34; Vars are exposed two ways:\nIn templates as {{ .Vars.WORK_EMAIL }}. To make a var optional, use {{ if hasKey .Vars \u0026quot;X\u0026quot; }}{{ .Vars.X }}{{ end }} — missingkey=error applies, so referencing an undefined var fails the render. In scripts as environment variables: $WORK_EMAIL, $EDITOR, etc., exported into every scripts/*.sh subprocess. Keys are case-sensitive. Convention is UPPER_SNAKE since they double as shell env vars.\nWhat homie init writes # A fresh homie init produces something like:\n[user] name = \u0026#34;Scout Homes\u0026#34; email = \u0026#34;scout@homie.sh\u0026#34; [profile] name = \u0026#34;personal\u0026#34; default_shell = \u0026#34;zsh\u0026#34; [packages] all = [\u0026#34;git\u0026#34;, \u0026#34;zsh\u0026#34;, \u0026#34;neovim\u0026#34;, \u0026#34;tmux\u0026#34;, \u0026#34;ripgrep\u0026#34;, \u0026#34;fd\u0026#34;, \u0026#34;fzf\u0026#34;] [vars] EDITOR = \u0026#34;nvim\u0026#34; From there, add per-distro overrides, tags, and vars as your environment demands. The schema is intentionally small — anything more dynamic belongs in scripts/.\nNon-native backends # Beyond the native package manager, [packages] accepts sub-tables for non-native managers. v1 ships flatpak, brew, and snap; the namespace is reserved for cargo, npm, pip, etc. to follow.\n[packages.brew] is Homebrew as a Linux backend — handy on immutable distros (Universal Blue, Bazzite) where dnf is discouraged. On macOS, brew is the native manager instead, so list those packages under [packages].macos, not here.\n[packages.flatpak] all = [\u0026#34;md.obsidian.Obsidian\u0026#34;] fedora = [\u0026#34;org.localsend.localsend_app\u0026#34;] [packages.brew] all = [\u0026#34;fd\u0026#34;, \u0026#34;ripgrep\u0026#34;, \u0026#34;bat\u0026#34;] [packages.snap] all = [\u0026#34;gimp\u0026#34;, \u0026#34;spotify\u0026#34;] Each backend mirrors the base shape — all, distro keys, and tag-keyed sub-tables — and follows the same resolution and dedup rules. Combined with tag-keyed packages:\n[packages.\u0026#34;tag:work\u0026#34;.flatpak] all = [\u0026#34;us.zoom.Zoom\u0026#34;] Backends are opt-in by tool presence. If the backend\u0026rsquo;s CLI tool isn\u0026rsquo;t on PATH, homie apply logs a warning and skips that phase — it doesn\u0026rsquo;t fail. Setting up a flatpak remote or installing brew belongs in scripts/pre-*.sh so it runs before the backend\u0026rsquo;s install step.\nThe Flatpak backend installs from the flathub remote. References from flathub-beta, GNOME nightly, or a custom remote aren\u0026rsquo;t supported by [packages.flatpak]; install those via scripts/*.sh.\nThe Snap backend installs with snap install. Snaps that need unconfined (classic) confinement — common for developer tools like the AWS CLI or editors — carry a /classic suffix on the package name; /devmode and /jailmode work the same way. A bare name installs under default (strict) confinement.\n[packages.snap] all = [\u0026#34;gimp\u0026#34;] # strict confinement [packages.\u0026#34;tag:work\u0026#34;.snap] all = [\u0026#34;aws-cli/classic\u0026#34;, \u0026#34;code/classic\u0026#34;] An unrecognized suffix (e.g. foo/bogus) is a hard error. The suffix only expresses confinement — non-default channels or tracks (--channel, --channel=22/stable) aren\u0026rsquo;t expressible here; install those from a scripts/*.sh. Installing snapd itself, or removing a conflicting distro package first, also belongs in scripts/pre-*.sh.\nUnknown backend names (a typo, or one that doesn\u0026rsquo;t exist yet) decode with a warning rather than hard-failing the load — homie doctor and homie apply surface them so the file stays forward-compatible with newer homie binaries.\nThe homie apply lifecycle becomes: detect → pre-scripts → packages → backends → link → render → scripts, where \u0026ldquo;backends\u0026rdquo; iterates whatever non-native backends you declared, in alphabetical order. Backends run after native packages so a brew or flatpak installed by [packages] is available before its own phase fires.\nPer-host overlay # When the same repo serves multiple machines, ship a hosts/\u0026lt;short-hostname\u0026gt;.toml alongside homie.toml. If the file matching the current host exists, it\u0026rsquo;s deep-merged onto the base at load time:\ndotfiles/ homie.toml # base, applies everywhere hosts/ coach.toml # profile=personal + laptop packages uceap-dev01.toml # profile=work + work vars and packages Merge rules:\n[user] and [profile] scalars in the overlay replace the base when set non-empty. [packages].* arrays append to the base (overlap is deduped, order preserved). [tags].extra appends. [vars] override per-key (base keys not mentioned by the overlay survive). The hostname used for the lookup is the short form — everything before the first dot — so coach.lan matches hosts/coach.toml. If os.Hostname() fails or returns something that looks unsafe (a path separator), no overlay is loaded and homie doctor surfaces a warning.\nValidation runs after the merge, so an overlay can legitimately fill in required [user] fields if you\u0026rsquo;d rather not commit them to the base.\nUnknown fields # Unknown TOML keys are recorded as warnings, not errors. This lets you add new fields for a newer homie binary without breaking older clients on the same repo. Run homie status to see warnings without applying.\nRequired-field violations (missing user.name or user.email) are hard errors — homie apply refuses to proceed.\n","externalUrl":null,"permalink":"/docs/config/","section":"Documentation","summary":"homie.toml lives at the root of your user environment repo. It is the only configuration Homie reads. Everything else — your home/ tree and scripts/ — is on disk, where you can see and version it.\nMinimal valid file:\n[user] name = \"Scout Homes\" email = \"scout@homie.sh\" That’s it. Every other table is optional. The sections below describe each one in order.\n[user] # Identity. Both fields are required.\n","title":"homie.toml","type":"docs"},{"content":"Everything Homie writes into $HOME comes from one directory in your repo: home/. The shape of the file decides what happens to it:\nA plain file (home/.zshrc) becomes a symlink in $HOME at the matching path (~/.zshrc). A file whose name ends in .tmpl (home/.gitconfig.tmpl) is rendered through Go text/template + Sprig, with the .tmpl suffix stripped on the way out (~/.gitconfig). That\u0026rsquo;s it. The suffix is the only disambiguator. Two trees writing the same target are resolved by tag specificity, not by configuration.\n\u0026ldquo;Dotfiles\u0026rdquo; is the conventional name for what people manage this way, but Homie doesn\u0026rsquo;t actually care about the leading dot — any file under your $HOME can live in home/: home/bin/foo, home/Pictures/wallpaper.jpg, whatever.\nSymlinks # A plain file at home/\u0026lt;path\u0026gt; symlinks to ~/\u0026lt;path\u0026gt; on homie apply. The symlink points at the real file inside your repo, so:\n$ ls -l ~/.zshrc ~/.zshrc -\u0026gt; /home/scout/dotfiles/home/.zshrc Edit the source directly. vim ~/.zshrc opens the file in the repo through the symlink. Save, git diff, commit — no separate \u0026ldquo;stage this back to the repo\u0026rdquo; step. Mode is preserved by the filesystem, not by Homie — symlinks resolve through to the source\u0026rsquo;s permissions. Conflicts are backed up. If a real file already exists at the destination, homie apply moves it aside to \u0026lt;path\u0026gt;.homie-backup-\u0026lt;timestamp\u0026gt; before creating the symlink. Your data is never silently overwritten. Stale symlinks are replaced. If ~/.zshrc already points somewhere unexpected (a previous tool, an old config), Homie removes the old link and creates a fresh one to the repo. The previous target file isn\u0026rsquo;t touched. homie home runs the symlink + render phases against this tree without touching packages or scripts. homie doctor reports broken symlinks (a symlink in $HOME pointing into your repo, but the source file no longer exists).\nTemplates # A file at home/\u0026lt;path\u0026gt;.tmpl is parsed as a Go text/template and rendered into ~/\u0026lt;path\u0026gt; (with the .tmpl suffix stripped). The output is a real file, not a symlink — the template is the source of truth, the output is the artifact. Re-run homie apply (or homie home) to refresh.\nSource file mode carries through: home/bin/foo.sh.tmpl renders executable.\nPreviewing # To see what a template resolves to on the current host without writing into $HOME, render it to stdout:\nhomie render home/.gitconfig.tmpl # one template, raw output homie home --dry-run # every active template, plus the link/render plan Both use the same data as a real run (active tags, [vars], hasTag), so the preview is faithful — a tight edit-render-inspect loop while authoring, and safe for CI or automated agents to call.\nSyntax # Templates use Go\u0026rsquo;s text/template syntax augmented with Sprig helpers and one Homie extension (hasTag). Same delimiters as chezmoi/Helm: {{ }}.\n[user] name = {{ .Name }} {{- if hasTag \u0026#34;work\u0026#34; }} email = {{ .Vars.WORK_EMAIL }} {{- else }} email = {{ .Email }} {{- end }} {{- ... }} trims preceding whitespace and the newline; {{ ... -}} trims following. Standard text/template mechanics — use them to keep the rendered output clean.\nMissing fields fail loudly. Homie sets missingkey=error, so a typo like {{ .Eamil }} errors out instead of rendering \u0026lt;no value\u0026gt;.\nData context # Every template has these fields available:\nField Type Source .Name string [user].name .Email string [user].email .Profile string [profile].name .DefaultShell string [profile].default_shell .Distro string detected (ubuntu, debian, fedora, arch, macos, termux, unknown) .Arch string detected CPU architecture (amd64, arm64) — unrelated to the arch platform .IsContainer bool detected (/.dockerenv, cgroup, env) .IsRoot bool detected (running as root) .Tags []string merged auto + profile + extra .Vars map[string]any the [vars] table To see this table populated with the live values on the current host, run homie context — it prints the data as JSON with keys matching the field names above, so it doubles as a machine-readable reference for scripts and agents. The reference itself also ships inside the binary: homie help templating lists these fields, the hasTag helper, and the missing-key rules, so it works offline on any machine with homie installed.\nThe hasTag helper # Tag membership is the most common branch, so it gets a dedicated function:\n{{ if hasTag \u0026#34;fedora\u0026#34; }} ... {{ end }} {{ if hasTag \u0026#34;container\u0026#34; }} ... {{ end }} hasTag returns true if the name is in .Tags. Equivalent to has \u0026quot;fedora\u0026quot; .Tags but easier to read at a glance.\nSprig functions # You get all of Sprig\u0026rsquo;s ~100 helpers. The ones that come up most:\ndefault for fallbacks: {{ default \u0026quot;nvim\u0026quot; .Vars.EDITOR }} — but see the note below about missingkey=error. hasKey for optional vars: {{ if hasKey .Vars \u0026quot;WORK_EMAIL\u0026quot; }}...{{ end }}. dig for nested fallback: {{ dig \u0026quot;WORK_EMAIL\u0026quot; \u0026quot;fallback\u0026quot; .Vars }}. String ops: lower, upper, trim, replace, contains. List ops: has, join, sortAlpha. Full reference: https://masterminds.github.io/sprig/.\ndefault vs missingkey=error # default cannot rescue a missing map key. Because missingkey=error is set, evaluating .Vars.MISSING errors before default ever sees the value. For optional vars use hasKey or dig:\n{{ /* Wrong — errors if WORK_EMAIL is unset */ }} {{ default .Email .Vars.WORK_EMAIL }} {{ /* Right */ }} {{ if hasKey .Vars \u0026#34;WORK_EMAIL\u0026#34; }}{{ .Vars.WORK_EMAIL }}{{ else }}{{ .Email }}{{ end }} {{ /* Also right, more concise */ }} {{ dig \u0026#34;WORK_EMAIL\u0026#34; .Email .Vars }} Tag-gated trees # Sibling directories named home.tag-\u0026lt;X\u0026gt;[.tag-\u0026lt;Y\u0026gt;...] are processed only when every named tag is active on the host. Plain home/ always applies. The convention covers both kinds of file — plain and .tmpl — because they share one tree:\nhome/ # always .zshrc # plain → symlink .gitconfig.tmpl # → renders to ~/.gitconfig home.tag-work/ # only when hasTag \u0026#34;work\u0026#34; .ssh/config.tmpl home.tag-work.tag-kde/ # AND: both tags must be active .config/plasma/some-template.tmpl Use a tag-gated directory when an entire file is conditional on a tag — including binary blobs, opaque desktop files, anything that isn\u0026rsquo;t worth templating just to gate it. For per-line conditionals inside a single rendered file, use {{ if hasTag ... }} within one template — that\u0026rsquo;s what hasTag is for.\nTag names in directory suffixes can\u0026rsquo;t contain . — that character is how Homie splits multiple tags inside one directory name. So home.tag-fedora.42/ parses as two segments (fedora and 42), and since the second one is malformed (42 doesn\u0026rsquo;t start with tag-), the whole directory is rejected. Use only [A-Za-z0-9_-]-style tag names when naming a tag-gated directory.\nhomie doctor lists tag-gated trees that aren\u0026rsquo;t active on the current host as informational findings — useful for sanity-checking a multi-tag layout from a host where only some of the trees apply.\nThe same naming convention extends to scripts: scripts.tag-\u0026lt;X\u0026gt;/ directories run only when their tags are active. Unlike home trees, which resolve same-target collisions by specificity, scripts have no override rule — the same filename in two active script trees is an error. See homie run for the ordering rules.\nOverrides # Two trees can legitimately claim the same $HOME target. The more-specific tree wins, where specificity is the number of required tags on the source tree\u0026rsquo;s directory name:\nDirectory Specificity home/ 0 home.tag-work/ 1 home.tag-work.tag-kde/ 2 Different specificity → the deeper tree wins silently, regardless of class. So a templated .gitconfig in the work tree overrides a plain .gitconfig in the base, and vice versa:\nhome/.gitconfig (spec 0) — applies on every host home.tag-work/.gitconfig.tmpl (spec 1) — overrides on a work host On a work host, the templated .gitconfig wins; the base symlink is not created. Everywhere else, the plain home/.gitconfig symlinks normally. Same shape works in reverse: a plain file in a more-specific tree can override a template in the base.\nSame specificity → error. When two trees claim the same target at the same depth, Homie won\u0026rsquo;t guess. Two common shapes:\nSame tree, both classes: home/.gitconfig and home/.gitconfig.tmpl (both spec 0). Collapse into one — usually the template. Sibling tag dirs: home.tag-work/.foo and home.tag-personal/.foo (both spec 1, with both tags somehow active). Narrow one tree (home.tag-work.tag-laptop/), or merge into a single template with {{ if hasTag ... }}. The override is resolved once, before either phase writes anything, so the symlink phase and the template phase agree on which source wins for each target.\nCookbook # One file, two hosts # A .gitconfig whose email changes between work and personal:\n# homie.toml [user] name = \u0026#34;Scout Homes\u0026#34; email = \u0026#34;scout@homie.sh\u0026#34; [vars] WORK_EMAIL = \u0026#34;scout@uceap.example.com\u0026#34; home/.gitconfig.tmpl:\n[user] name = {{ .Name }} {{- if hasTag \u0026#34;work\u0026#34; }} email = {{ .Vars.WORK_EMAIL }} {{- else }} email = {{ .Email }} {{- end }} One template, one file in $HOME, branch on tag. Pair with a per-host overlay (hosts/coach.toml, hosts/uceap-dev01.toml) that sets the profile or extra tag.\nA whole file only on KDE hosts # Some files don\u0026rsquo;t make sense to template — a KDE plasma config is an opaque blob, a binary desktop file, an executable script that\u0026rsquo;s either-or. Use a tag-gated tree:\nhome/ .zshrc home.tag-kde/ .config/plasma-workspace/env/01-keychain.sh .config/autostart/walgrun.desktop On KDE hosts, both files materialize under ~/.config/. Off KDE, they\u0026rsquo;re absent — no empty templates with {{ if hasTag \u0026quot;kde\u0026quot; }}{{ end }} wrappers around the whole body.\nPer-profile block in a template # {{- if eq .Profile \u0026#34;work\u0026#34; -}} [includeIf \u0026#34;gitdir:~/work/\u0026#34;] path = ~/.config/git/work {{- end }} OS-conditional template lines # {{- if hasTag \u0026#34;fedora\u0026#34; }} [diff] tool = meld {{- else if hasTag \u0026#34;ubuntu\u0026#34; }} [diff] tool = vimdiff {{- end }} Container-aware defaults # [core] editor = {{ if .IsContainer }}vi{{ else }}nvim{{ end }} pager = {{ if .IsContainer }}cat{{ else }}delta{{ end }} Looping over tags # # tags active on this machine: {{- range .Tags }} # - {{ . }} {{- end }} A template that is a shell script # home/bin/sync-secrets.sh.tmpl:\n#!/usr/bin/env bash set -euo pipefail REMOTE={{ .Vars.SECRETS_REMOTE | quote }} mkdir -p \u0026#34;$HOME/.secrets\u0026#34; rsync -a --delete \u0026#34;$REMOTE/\u0026#34; \u0026#34;$HOME/.secrets/\u0026#34; The source file\u0026rsquo;s executable bit carries through, so the rendered ~/bin/sync-secrets.sh is runnable.\nA symlink that points anywhere except $HOME # homie home only writes into $HOME — it can\u0026rsquo;t put a file at, say, /etc/sudoers.d/scout. Use a scripts/*.sh for that:\n#!/usr/bin/env bash set -euo pipefail dest=/etc/sudoers.d/scout sudo install -m 0440 -o root -g root \u0026#34;$HOMIE_REPO/home/sudoers\u0026#34; \u0026#34;$dest\u0026#34; The source still lives in home/, so the install path stays in sync with git diff.\n","externalUrl":null,"permalink":"/docs/dotfiles/","section":"Documentation","summary":"Everything Homie writes into $HOME comes from one directory in your repo: home/. The shape of the file decides what happens to it:\nA plain file (home/.zshrc) becomes a symlink in $HOME at the matching path (~/.zshrc). A file whose name ends in .tmpl (home/.gitconfig.tmpl) is rendered through Go text/template + Sprig, with the .tmpl suffix stripped on the way out (~/.gitconfig). That’s it. The suffix is the only disambiguator. Two trees writing the same target are resolved by tag specificity, not by configuration.\n","title":"Dotfiles","type":"docs"},{"content":"The honest version of the matrix on the homepage. Each of these tools is good at what it\u0026rsquo;s designed for. Pick Homie when the tradeoffs below match how you actually work.\nHomie covers Linux and macOS from one tool and one repo, so the same dotfiles, templates, and provisioning work across both. That\u0026rsquo;s worth keeping in mind below: on macOS you might otherwise reach for brew bundle (packages only — no dotfiles, templating, or multi-host overlays) or Nix / Home Manager (more powerful, but heavier).\nvs chezmoi # The closest tool. Both are single Go binaries, both use Go text/template + Sprig, both target the same \u0026ldquo;dotfiles for one developer across many machines\u0026rdquo; problem.\nWhere they differ:\nSource model. chezmoi copies your dotfiles into ~/.local/share/chezmoi, then renders into $HOME. Editing ~/.zshrc doesn\u0026rsquo;t edit your repo — chezmoi edit does. Homie uses symlinks: ~/.zshrc is the repo file. git diff shows what changed, no extra step. Provisioning. chezmoi handles dotfiles. System packages and one-shot setup are left to scripts you wire up yourself. Homie does packages and ordered scripts in the same apply pass. Secrets. chezmoi has rich integrations (age, 1Password, Bitwarden, keepassxc, AWS Parameter Store). Homie has none — secrets are out of scope for v1. Pick chezmoi if you want best-in-class secret-manager integration, or if you specifically prefer the copy-and-render model (it survives deleting the repo clone in a way symlinks don\u0026rsquo;t).\nPick Homie if you want your dotfiles editable in place and your package install + setup scripts in the same tool.\nvs Ansible # Ansible is a configuration management tool for fleets of machines, run from a control node over SSH. It\u0026rsquo;s powerful, mature, and totally overkill for one developer\u0026rsquo;s laptop.\nWhere they differ:\nScope. Ansible plays target groups of remote hosts. Homie targets the machine it\u0026rsquo;s running on. Runtime. Ansible needs Python on the control node and on every target. Homie is a single static binary. Dotfiles. Ansible has no first-class dotfile model — you cobble one together with template, copy, and file modules. Learning curve. YAML + Jinja + inventory + roles + playbooks vs. one TOML file and three directories. Pick Ansible if you\u0026rsquo;re configuring more than one machine you don\u0026rsquo;t own (servers, fleets, CI builders).\nPick Homie if the answer is \u0026ldquo;my workstation, my laptop, and whatever Codespace I\u0026rsquo;m in this week.\u0026rdquo;\nvs GNU Stow # Stow is the original dotfile symlinker. It does one thing, does it well, and is in every distro\u0026rsquo;s package repo.\nWhere they differ:\nProvisioning. Stow only symlinks. Packages and setup scripts are on you. Templating. Stow has none. If you need a .gitconfig that uses WORK_EMAIL on the work laptop and HOME_EMAIL everywhere else, Stow asks you to maintain two files. Conflict handling. Stow refuses to overwrite. Homie backs up the existing file to \u0026lt;path\u0026gt;.homie-backup-\u0026lt;timestamp\u0026gt; and links anyway. Pick Stow if symlinks are all you want and you\u0026rsquo;re allergic to new dependencies.\nPick Homie if you also want templating and provisioning in the same pass.\nvs Nix / Home Manager # Nix is the maximalist answer: a purely functional package manager with a declarative configuration model. Home Manager applies the same philosophy to user environments.\nWhere they differ:\nModel. Nix is declarative — you describe the desired state and Nix realises it. Homie is imperative with idempotency guards — each step checks before acting, but the steps run in order. Reproducibility. Nix is bit-for-bit reproducible. Homie is \u0026ldquo;best-effort idempotent\u0026rdquo; — packages can drift with upstream repos. Weight. Nix needs /nix/store, the Nix daemon, and a substantial initial install. Homie is a 3 MB static binary. Learning curve. Nix language + flakes + Home Manager modules vs. TOML + Go templates. Ephemeral environments. Codespaces and devcontainers start fast with Homie. Bootstrapping Nix from scratch is slow enough to be painful in short-lived environments. Pick Nix if you want true reproducibility, atomic rollback, or declarative purity is non-negotiable.\nPick Homie if \u0026ldquo;imperative with idempotency\u0026rdquo; is good enough and you value boot time, binary size, and a small mental model.\nvs brew bundle / Brewfile # A macOS-only option. A Brewfile lists formulae, casks, and Mac App Store apps, and brew bundle installs them.\nWhere they differ:\nScope. brew bundle installs packages. It has no dotfile model, no templating, and no per-host overrides. Homie does packages, dotfiles, templates, and ordered scripts in one pass. Platform. brew bundle is macOS (and Linuxbrew) only. Homie manages the same repo across Linux and macOS, with native packages on each (apt/dnf/pacman on Linux, brew on macOS — formulae by bare name, casks with a /cask suffix). Pick brew bundle if all you want is a reproducible package list on a single Mac.\nPick Homie if you also want your dotfiles, templates, and setup scripts managed alongside those packages, on Linux as well as macOS.\nWhen Homie is the wrong answer # Multiple users on one machine. Homie is single-user, configured per user. There\u0026rsquo;s no fleet mode. Windows. v1 supports Linux and macOS, not Windows. Secrets management. Out of scope. Pair Homie with sops, age, pass, or a cloud secret store and reference paths from your scripts. You need rollback. Homie has no state, so it can\u0026rsquo;t roll back. Recovery is \u0026ldquo;edit your repo, homie apply again.\u0026rdquo; ","externalUrl":null,"permalink":"/docs/compare/","section":"Documentation","summary":"The honest version of the matrix on the homepage. Each of these tools is good at what it’s designed for. Pick Homie when the tradeoffs below match how you actually work.\nHomie covers Linux and macOS from one tool and one repo, so the same dotfiles, templates, and provisioning work across both. That’s worth keeping in mind below: on macOS you might otherwise reach for brew bundle (packages only — no dotfiles, templating, or multi-host overlays) or Nix / Home Manager (more powerful, but heavier).\n","title":"Compare","type":"docs"},{"content":"Working examples for the setups that come up most. Each recipe shows just the relevant slice of homie.toml and the files you\u0026rsquo;d add — drop into a homie init-scaffolded repo and adapt.\nWork laptop, personal laptop, same repo # The classic \u0026ldquo;one repo, different identity per machine\u0026rdquo; pattern. Use the [profile] to mark the machine, and [vars] to carry the work-only email so it never lands in your personal commits.\nhomie.toml (work machine):\n[user] name = \u0026#34;Scout Homes\u0026#34; email = \u0026#34;scout@homie.sh\u0026#34; [profile] name = \u0026#34;work\u0026#34; [vars] WORK_EMAIL = \u0026#34;scout@uceap.example.com\u0026#34; home/.gitconfig.tmpl:\n[user] name = {{ .Name }} {{- if hasTag \u0026#34;work\u0026#34; }} email = {{ .Vars.WORK_EMAIL }} {{- else }} email = {{ .Email }} {{- end }} Same homie.toml on the personal laptop, just profile.name = \u0026quot;personal\u0026quot; and WORK_EMAIL omitted. The template renders the right address based on which tag is active.\nFedora workstation with extras # Fedora ships a few packages under different names than Debian/Ubuntu, and a few that only Fedora has. Use a per-distro override.\n[packages] all = [ \u0026#34;git\u0026#34;, \u0026#34;zsh\u0026#34;, \u0026#34;neovim\u0026#34;, \u0026#34;tmux\u0026#34;, \u0026#34;ripgrep\u0026#34;, \u0026#34;fzf\u0026#34;, \u0026#34;jq\u0026#34;, ] fedora = [ \u0026#34;fd-find\u0026#34;, # plain `fd` only on Arch, macOS and Termux \u0026#34;util-linux-user\u0026#34;, # provides `chsh` \u0026#34;dejavu-sans-fonts\u0026#34;, \u0026#34;dejavu-sans-mono-fonts\u0026#34;, ] ubuntu = [ \u0026#34;fd-find\u0026#34;, \u0026#34;fonts-dejavu\u0026#34;, ] debian = [ \u0026#34;fd-find\u0026#34;, \u0026#34;fonts-dejavu\u0026#34;, ] arch = [ \u0026#34;fd\u0026#34;, \u0026#34;ttf-dejavu\u0026#34;, ] homie apply resolves the active set as all ∪ \u0026lt;distro\u0026gt;, deduped, and only installs the missing ones.\nDevcontainer / GitHub Codespaces # Containers detect automatically (/.dockerenv, cgroup, or REMOTE_CONTAINERS / CODESPACES env). Branch off .IsContainer or the container tag.\n[profile] name = \u0026#34;devcontainer\u0026#34; [packages] all = [\u0026#34;git\u0026#34;, \u0026#34;zsh\u0026#34;, \u0026#34;ripgrep\u0026#34;, \u0026#34;fd-find\u0026#34;, \u0026#34;fzf\u0026#34;] home/.zshrc.tmpl — keep it lean in containers:\n{{- if .IsContainer }} # Container-tuned: no heavy prompt, no fzf history fancy bindings. PS1=\u0026#39;%n@%m %~ %# \u0026#39; {{- else }} # Full personal shell. source ~/.config/zsh/prompt.zsh source ~/.config/zsh/fzf-bindings.zsh {{- end }} In your devcontainer\u0026rsquo;s postCreateCommand, just run bash \u0026lt;(curl -fsSL https://raw.githubusercontent.com/you/dotfiles/main/bootstrap.sh).\nShared server, no root # You don\u0026rsquo;t have sudo, but you can still apply dotfiles, render templates, and run user-space setup scripts. The package phase will fail without root — skip it by leaving [packages] empty (or by adding guards in scripts that use command -v to check before install).\n[packages] # Empty — no system packages on this host. [vars] PREFIX = \u0026#34;/home/scout/.local\u0026#34; scripts/01-tools.sh:\n#!/usr/bin/env bash set -euo pipefail # Skip if mise is already installed. command -v mise \u0026gt;/dev/null \u0026amp;\u0026amp; exit 0 mkdir -p \u0026#34;$PREFIX/bin\u0026#34; curl -fsSL https://mise.run | MISE_INSTALL_PATH=\u0026#34;$PREFIX/bin/mise\u0026#34; sh Run with homie apply as usual — homie install will print a friendly notice when there\u0026rsquo;s nothing to install.\nShell and editor plugins without a plugin manager # Anything that \u0026ldquo;installs\u0026rdquo; by being a git checkout at a known path — zsh plugins, tpm, an AstroNvim template — is an [externals] entry, not a script. Homie clones it on the first apply and keeps it updated after that.\n[externals.\u0026#34;~/.zsh/plugins/zsh-autosuggestions\u0026#34;] repo = \u0026#34;https://github.com/zsh-users/zsh-autosuggestions\u0026#34; ref = \u0026#34;v0.7.1\u0026#34; # pinned — your shell won\u0026#39;t change under you [externals.\u0026#34;~/.tmux/plugins/tpm\u0026#34;] repo = \u0026#34;https://github.com/tmux-plugins/tpm\u0026#34; ref = \u0026#34;v3.1.0\u0026#34; [externals.\u0026#34;~/.config/nvim\u0026#34;] repo = \u0026#34;https://github.com/AstroNvim/template\u0026#34; ref = \u0026#34;v4.7.7\u0026#34; Then source the checkouts from your dotfiles as usual, e.g. in home/.zshrc:\nsource ~/.zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh Updating a plugin is a one-line diff: bump the ref, run homie apply, commit. Leaving ref off tracks the upstream default branch instead — fine for a theme, risky for the shell you\u0026rsquo;d need to debug a bad update. See Config for the full semantics.\nTagged secrets via your password manager # Homie has no built-in secret support. Use your favourite secret store to write files at known paths, then reference those paths from scripts/templates.\nhomie.toml:\n[vars] SECRETS_DIR = \u0026#34;/run/user/1000/secrets\u0026#34; [tags] extra = [\u0026#34;has-secrets\u0026#34;] scripts/00-secrets.sh (runs before any script that needs them):\n#!/usr/bin/env bash set -euo pipefail # Idempotent: only fetch if we haven\u0026#39;t this session. test -f \u0026#34;$SECRETS_DIR/github-token\u0026#34; \u0026amp;\u0026amp; exit 0 mkdir -p \u0026#34;$SECRETS_DIR\u0026#34; pass show work/github-token \u0026gt; \u0026#34;$SECRETS_DIR/github-token\u0026#34; chmod 600 \u0026#34;$SECRETS_DIR\u0026#34;/* home/.netrc.tmpl:\n{{- if hasTag \u0026#34;has-secrets\u0026#34; }} machine github.com login {{ .Vars.WORK_EMAIL }} password file://{{ .Vars.SECRETS_DIR }}/github-token {{- end }} The has-secrets tag is just for your own readability — strip it on hosts where secrets aren\u0026rsquo;t available, and the template skips itself.\nThird-party package repos via pre-scripts # [packages] runs against the native package manager — dnf, apt or pacman. To install something that lives in a third-party repo (VS Code, 1Password, HashiCorp, Docker, RPM Fusion, etc.) you need that repo registered with the package manager before homie apply\u0026rsquo;s install step. That\u0026rsquo;s what scripts/pre-*.sh is for: every script whose name begins with pre- runs ahead of the package phase.\nLifecycle, end to end:\ndetect → pre-scripts → packages → link → render → scripts Same env (HOMIE_REPO, HOMIE_HOME, HOMIE_TAGS, [vars]) as the post-scripts you already write. Both groups are ordered lexically inside their phase, and each script is responsible for its own idempotency.\nscripts/pre-01-vscode-repo.sh (Fedora):\n#!/usr/bin/env bash set -euo pipefail # Idempotent: skip if already configured. test -f /etc/yum.repos.d/vscode.repo \u0026amp;\u0026amp; exit 0 sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc sudo tee /etc/yum.repos.d/vscode.repo \u0026gt; /dev/null \u0026lt;\u0026lt;EOF [code] name=Visual Studio Code baseurl=https://packages.microsoft.com/yumrepos/vscode enabled=1 gpgcheck=1 gpgkey=https://packages.microsoft.com/keys/microsoft.asc EOF homie.toml:\n[packages] fedora = [\u0026#34;code\u0026#34;] To run only the pre-scripts without touching packages or dotfiles:\nhomie run --phase=pre CI verification step # A useful idiom: run homie status and homie doctor in CI on the user environment repo itself, so you catch a broken template or a missing package reference before it bites on a fresh box.\n.github/workflows/check.yml:\nname: check on: [push, pull_request] jobs: doctor: runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 - name: Install homie run: | curl -fsSL -o homie https://github.com/kurowski/homie/releases/latest/download/homie-linux-amd64 chmod +x homie sudo mv homie /usr/local/bin/ - run: homie status --no-tty - run: homie doctor --no-tty homie doctor exits non-zero on any problem, so the job fails loudly when the repo drifts.\nThe homie-linux-amd64 binary is correct for the ubuntu-latest runner above; on a macos-latest runner, download homie-darwin-arm64 (or homie-darwin-amd64 on Intel) instead.\nA complete real-world repo # The recipes above are sliced down to one idea each. To see them combined in a repo that\u0026rsquo;s actually in daily use, Homie\u0026rsquo;s author keeps their own environment repo public:\ngithub.com/kurowski/dotfiles\nIt exercises just about every Homie feature at once:\nA home/ tree of real configs (zsh, Neovim, tmux, Ghostty, eza) as symlinks, plus .tmpl templates for the files that vary per machine (.gitconfig, a work-only .zshrc.local). Tag-gated home.tag-work/ and multi-tag home.tag-work.tag-kde/ trees for files that only belong on certain machines. Native [packages] for Fedora, Debian, and macOS — with Homebrew /cask GUI apps on the Mac side. flatpak and snap backends alongside the native lists. Tag-keyed and multi-tag AND package blocks, e.g. [packages.\u0026quot;tag:desktop\u0026quot;], [packages.\u0026quot;tag:personal.tag:ubuntu\u0026quot;.snap], and even a three-tag [packages.\u0026quot;tag:personal.tag:desktop.tag:ubuntu\u0026quot;.snap]. Per-host overlays in hosts/ for half a dozen real machines (work laptops, a desktop, a server). Ordered scripts/ plus tag-conditional scripts.tag-fedora/, scripts.tag-ubuntu/, scripts.tag-gnome.tag-personal/, and friends — including pre-* scripts that add third-party package repos before the package phase runs. [vars] for per-machine identity and a generated bootstrap.sh. Clone it for a concrete reference, or borrow whichever pieces map onto your own setup.\n","externalUrl":null,"permalink":"/docs/recipes/","section":"Documentation","summary":"Working examples for the setups that come up most. Each recipe shows just the relevant slice of homie.toml and the files you’d add — drop into a homie init-scaffolded repo and adapt.\nWork laptop, personal laptop, same repo # The classic “one repo, different identity per machine” pattern. Use the [profile] to mark the machine, and [vars] to carry the work-only email so it never lands in your personal commits.\n","title":"Recipes","type":"docs"},{"content":"Short answers to the questions that come up most. For the long version of the tool comparisons, see Compare.\nWhy TOML? # Because it\u0026rsquo;s structured enough to validate, simple enough to hand-edit, and free of YAML\u0026rsquo;s foot-guns (significant whitespace, no parsing as false, sexagesimal numbers, the Norway problem). It\u0026rsquo;s also what chezmoi uses, so anyone arriving from there has zero ramp-up.\nWhy symlinks instead of copies? # So that ~/.zshrc is the repo file. Edit it, git diff shows the change, commit, push — no chezmoi edit round-trip, no \u0026ldquo;did I edit the source or the rendered copy?\u0026rdquo; confusion.\nThe tradeoff: deleting the repo clone breaks everything in $HOME that pointed into it. We think that\u0026rsquo;s a fair price for not having to remember an extra command every time you tweak your shell config.\nIs this just Nix with a worse model? # No. Nix is purely declarative and bit-for-bit reproducible — it builds the world from a flake. Homie is imperative with idempotency guards — each step checks before acting, so re-runs converge to a known state, but Homie never claims reproducibility. If you need reproducibility, use Nix. If you need a 3 MB binary that boots a Codespace in seconds, use Homie.\nHow is this different from chezmoi? # Three things:\nSource model. chezmoi copies dotfiles into ~/.local/share/chezmoi. Homie symlinks them in place. Provisioning. chezmoi handles dotfiles. Homie handles dotfiles, packages, and ordered setup scripts in one pass. Secrets. chezmoi has rich secret-manager integrations. Homie has none — pair it with sops, age, or pass and reference paths from scripts. Full breakdown on Compare.\nHow does Homie handle secrets? # It doesn\u0026rsquo;t. Use your favourite secret store (pass, sops, age, 1Password CLI, Bitwarden CLI) to fetch secrets into known paths, then reference those paths from scripts/*.sh or home/*.tmpl. See the \u0026ldquo;tagged secrets via your password manager\u0026rdquo; recipe.\nDoes Homie work on macOS? # Yes — macOS is a first-class platform alongside Ubuntu, Debian, Fedora, and Arch, on both Apple Silicon (arm64) and Intel (amd64). The same install one-liner works:\ncurl -fsSL https://homie.sh/install.sh | bash Native packages install through Homebrew (brew), declared under [packages].macos just like any other per-platform key. Dotfiles, templates, and scripts all behave exactly as they do on Linux.\nDo I need Homebrew? # Only if you declare [packages]. macOS ships no system package manager, so a dotfiles-only setup (no [packages]) needs nothing extra — homie apply and homie doctor won\u0026rsquo;t complain. If you do declare packages and brew isn\u0026rsquo;t installed, the native package phase just warns and skips (it doesn\u0026rsquo;t fail). To actually install those packages, install Homebrew yourself, or add a scripts/pre-*.sh that installs it before the package phase runs.\nHow do I install GUI / cask apps on macOS? # Add the /cask suffix to the app name. A bare name is a Homebrew formula; a /cask suffix is a Homebrew cask (a GUI app):\n[packages] macos = [\u0026#34;ripgrep\u0026#34;, \u0026#34;firefox/cask\u0026#34;, \u0026#34;rectangle/cask\u0026#34;] A bad suffix is caught by homie doctor before any install runs.\nDoes Homie work on Termux (Android)? # Yes. Termux is detected as the termux platform, and native packages install through pkg (Termux\u0026rsquo;s wrapper over its own apt repos), declared under [packages].termux. The bootstrap one-liner downloads the linux/arm64 binary — Termux runs native Linux binaries on the Android kernel — and installs it under $HOME/.local/bin, no root required. Termux is unprivileged with no sudo, so package installs never escalate. Dotfiles, templates, scripts, and externals all resolve against Termux\u0026rsquo;s $HOME exactly as they do elsewhere. Gate Android-only entries with hasTag \u0026quot;termux\u0026quot;.\nOne caveat if you run a Linux distro under Termux with proot-distro: Homie detects Termux from the TERMUX_VERSION variable, and Termux exports it into the proot guest\u0026rsquo;s environment. So a proot-distro login ubuntu session is still detected as termux (installing through pkg) rather than as ubuntu (installing through apt). Run Homie in native Termux, or unset TERMUX_VERSION before homie apply inside the guest to have it detected as the guest distro.\nWhy no Windows support? # Scope. v1 covers Linux and macOS — workstations, servers, CI, Codespaces, devcontainers, and the box your USB stick boots into. Windows isn\u0026rsquo;t ruled out forever; it\u0026rsquo;s ruled out for v1 so we ship the Linux and macOS story cleanly first.\nMy distro isn\u0026rsquo;t Ubuntu, Debian, Fedora, or Arch. Now what? # homie apply will detect your distro as unknown and print a friendly notice with a link to the contributing guide. You can still use Homie — dotfiles, templates, and scripts all work — but the package install phase becomes a no-op. Adding distro support is a small, well-isolated change; PRs welcome.\nThis includes derivatives of a supported distro — Mint, Pop!_OS, Manjaro, EndeavourOS. Only the exact ID= in /etc/os-release is matched, never ID_LIKE, because a derivative is free to rename or drop packages its parent ships and a silent guess would fail at install time instead of detection time.\nDoes Homie install from the AUR? # No. [packages] on Arch covers the official repos via pacman. The AUR needs a helper (yay, paru) that isn\u0026rsquo;t part of a base install, and building from source is a different proposition from fetching a signed package — so it stays an explicit choice you make in a scripts/ step:\n# scripts/20-aur.sh command -v paru \u0026gt;/dev/null || { sudo pacman -S --needed --noconfirm base-devel git rm -rf /tmp/paru # a half-finished earlier run would fail the clone git clone https://aur.archlinux.org/paru-bin.git /tmp/paru \u0026amp;\u0026amp; \\ (cd /tmp/paru \u0026amp;\u0026amp; makepkg -si --noconfirm) } paru -S --needed --noconfirm my-aur-package This one can\u0026rsquo;t run as root. makepkg refuses to, by design — so unlike the rest of homie apply, an AUR step only works on the run-as-your-user path, not the fresh-bare-metal-as-root one. It sudoes for the pacman calls it needs and no further.\nHomie also never runs pacman -Sy or -Syu for you: refreshing the database and then installing is the documented partial-upgrade footgun, and upgrading your whole system isn\u0026rsquo;t a decision homie apply should make. If a package can\u0026rsquo;t be found, Homie says so and suggests pacman -Syu.\nsudo says \u0026ldquo;a terminal is required\u0026rdquo; when I pipe bootstrap.sh into bash # Your bootstrap.sh predates Homie v0.5.1. Under curl … | bash, stdin is the pipe carrying the script rather than your terminal, so the first sudo in a setup script has nowhere to prompt — and because scripts run under set -euo pipefail, everything downstream of it (including the package phase) can go with it.\nBootstrap scripts generated by v0.5.1 and later hand the terminal to their children. Refresh yours in place:\ncd ~/dotfiles homie init --update git diff # review git commit -am \u0026#34;chore: refresh bootstrap.sh\u0026#34; See How do I refresh a generated file? for what --update will and won\u0026rsquo;t touch.\nHow do I refresh a generated file? # cd ~/dotfiles \u0026amp;\u0026amp; homie init --update Most of what homie init writes is a seed: homie.toml, home/, scripts/ are yours the moment they exist, and Homie never touches them again. bootstrap.sh is the exception — it encodes how the current homie wants to be launched (which release URL, which os/arch names, how stdin reaches sudo), so it goes stale when you upgrade. --update re-renders it in place. It takes no answers: identity comes from your homie.toml, the GitHub user and repo from your origin remote. Pass --github-user / --github-repo if there\u0026rsquo;s no remote to read.\nGenerated files carry a stamp recording the homie version that wrote them and a digest of the file as written:\n# homie:generated version=v0.7.0 sha256=7b7bdbc4… --update rewrites a file only when that digest still matches — i.e. nobody has edited it since. If you have edited it, or it predates stamps (every repo scaffolded before v0.7.0), update prints the diff and stops:\nbootstrap.sh skipped no homie:generated stamp — treating it as yours From there: --force takes Homie\u0026rsquo;s version, or delete the homie:generated line to opt the file out permanently. Either way nothing leaves your working tree, so git diff is the final say.\nRunning --update when everything is current is a no-op, so it\u0026rsquo;s safe to run after every homie selfupdate.\nCan I share one Homie repo across multiple users on the same box? # No. Homie is single-user — every path is rooted at $HOME, every config is per-user. If you need fleet management for a shared host, use Ansible.\nWhy is there no state file? # Because every check Homie performs is cheap:\nSymlink: readlink the destination, compare strings. Package: dpkg -s / rpm -q. Template: render to memory, compare bytes to existing file. State files create their own class of bugs — drift between the file and reality, lock contention, corruption after a crash. Going stateless trades a tiny amount of work-per-run for a lot less to go wrong.\n","externalUrl":null,"permalink":"/docs/faq/","section":"Documentation","summary":"Short answers to the questions that come up most. For the long version of the tool comparisons, see Compare.\nWhy TOML? # Because it’s structured enough to validate, simple enough to hand-edit, and free of YAML’s foot-guns (significant whitespace, no parsing as false, sexagesimal numbers, the Norway problem). It’s also what chezmoi uses, so anyone arriving from there has zero ramp-up.\n","title":"FAQ","type":"docs"},{"content":"Homie is small on purpose, but the surface that needs to grow first is distro and package-manager coverage. The code is structured so adding a new one is a focused change in two or three files.\nSource lives at github.com/kurowski/homie. PRs welcome; the rest of this page walks through the common paths.\nLearning the codebase with a tutor # The repository carries a Rolling Start map in .rolling/, so Claude Code can teach you the code from it: a lesson at a time, each with an exercise on your own checkout, reviewed like a pull request. It covers the command layer, config and the home tree, the package backends, scripts, and the scaffold. You need Go and git; nothing else runs. Open Claude Code in your clone and trust the folder: the repository\u0026rsquo;s settings add the tutor\u0026rsquo;s plugin. Then:\n/clear /rolling:start The /clear starts a fresh session, so the plugin that just arrived sets itself up before you begin.\nAdding a new distro # Distro support has three touch points. Grep for TODO(contrib) to see the current set:\ngit grep -n \u0026#39;TODO(contrib)\u0026#39; internal/detect/detect.go — recognise the distro\u0026rsquo;s /etc/os-release ID= value and return it from Detect(). Map it to the right package manager (apt, dnf, pacman, or a new one you\u0026rsquo;re adding alongside). Only the exact ID= is matched — ID_LIKE is deliberately ignored, since a derivative can rename packages out from under its parent. Two platforms are special-cased before the /etc/os-release parse: macOS (GOOS == \u0026quot;darwin\u0026quot; → platform key macos, manager brew) and Termux ($TERMUX_VERSION set → platform key termux, manager pkg), neither of which has an os-release at the real root.\ninternal/packages/ — if the distro uses an existing manager (apt, dnf, pacman), you\u0026rsquo;re done after step 1. If it needs a new manager, see adding a package manager below.\nAlso add the platform key to knownDistroKeyOrder in internal/config/config.go, or [packages].\u0026lt;yourdistro\u0026gt; parses with an \u0026ldquo;unrecognized distro key\u0026rdquo; warning.\ne2e/dockerfiles/ — add a minimal base image so the e2e harness exercises the new distro. Copy the existing fedora.Dockerfile or ubuntu.Dockerfile and adapt the base image plus any bootstrap packages (bash, git, sudo, ca-certificates).\nAdd a test entry in e2e/e2e_test.go for the new distro and run make e2e locally to confirm.\nAdding a package manager # The interface is small:\ntype Manager interface { IsAvailable() bool IsInstalled(pkg string) bool Install(packages []string) error } To add one (e.g. zypper, apk):\nCreate internal/packages/\u0026lt;name\u0026gt;.go implementing Manager. Mirror the structure of apt.go or dnf.go — both use an injectable command runner so they\u0026rsquo;re unit-testable without shelling out for real. Wire it into the selector in internal/packages/manager.go so detect.Env.PackageManager == \u0026quot;\u0026lt;name\u0026gt;\u0026quot; returns your implementation. Update internal/detect/detect.go to map the relevant distros to the new manager name. Add a unit test alongside (\u0026lt;name\u0026gt;_test.go) with table-driven IsInstalled/Install cases using the fake runner pattern. Key invariants every manager must hold:\nIdempotent. Install filters out already-installed packages before calling out to the real tool. Sudo only when needed. Check os.Geteuid(); prepend sudo only when not root. Never assume passwordless sudo — return the underlying exit error and let the user see it. The one deliberate exception is pkg (Termux): Termux runs unprivileged with no root and no sudo binary at all, so it never escalates regardless of the effective uid. No prompts. Pass whatever flag suppresses interactive prompts (-y for apt/dnf, --noconfirm for pacman, etc.). A homie apply mid-run should never block on a TTY question. Never upgrade the world. Refresh the package index only where that\u0026rsquo;s safe on its own. apt-get update is, so apt.go runs it. On Arch it isn\u0026rsquo;t — pacman -Sy followed by an install is the partial-upgrade footgun and the only safe refresh is a full -Syu — so pacman.go installs against the database as it stands and puts the fix in the error message instead. Running tests # make build # static binary at ./homie make test # go test ./... — unit tests only make lint # go vet + golangci-lint if installed make e2e # container-based e2e suite (needs Docker / Podman) The e2e suite builds the binary, builds one image per distro, runs homie apply against a fixture user-repo, and asserts the resulting state. It\u0026rsquo;s slow (~60s) but it\u0026rsquo;s the only way to catch regressions in the package phase.\nCode conventions # No panic outside main.go initialization. Wrap errors with context: fmt.Errorf(\u0026quot;link %s: %w\u0026quot;, path, err). No public API. Everything except cmd/homie lives under internal/. Tests next to source. Fixtures in \u0026lt;pkg\u0026gt;/testdata/. No external state writes other than $HOME and (when root) what the package manager touches on its behalf. Filing issues # Bug reports and feature requests go to github.com/kurowski/homie/issues. Useful things to include:\nDistro and version (cat /etc/os-release). homie --version. Output of homie doctor if homie apply is the failing command. Whether you\u0026rsquo;re running in a container / Codespace. For security issues, please don\u0026rsquo;t open a public issue — email the maintainer instead.\n","externalUrl":null,"permalink":"/docs/contributing/","section":"Documentation","summary":"Homie is small on purpose, but the surface that needs to grow first is distro and package-manager coverage. The code is structured so adding a new one is a focused change in two or three files.\nSource lives at github.com/kurowski/homie. PRs welcome; the rest of this page walks through the common paths.\nLearning the codebase with a tutor # The repository carries a Rolling Start map in .rolling/, so Claude Code can teach you the code from it: a lesson at a time, each with an exercise on your own checkout, reviewed like a pull request. It covers the command layer, config and the home tree, the package backends, scripts, and the scaffold. You need Go and git; nothing else runs. Open Claude Code in your clone and trust the folder: the repository’s settings add the tutor’s plugin. Then:\n","title":"Contributing","type":"docs"},{"content":"","externalUrl":null,"permalink":"/categories/","section":"Categories","summary":"","title":"Categories","type":"categories"},{"content":"The reference for getting Homie installed, configured, and onto every machine you live in.\nStart with the quick start if you\u0026rsquo;ve never used Homie before. If you\u0026rsquo;re coming from chezmoi, Ansible, Stow, or Nix, the comparison is a faster orientation.\n","externalUrl":null,"permalink":"/docs/","section":"Documentation","summary":"The reference for getting Homie installed, configured, and onto every machine you live in.\nStart with the quick start if you’ve never used Homie before. If you’re coming from chezmoi, Ansible, Stow, or Nix, the comparison is a faster orientation.\n","title":"Documentation","type":"docs"},{"content":" One command to make a fresh Linux or macOS box your own. # Homie gives you your own curl bash command to paste into a fresh Linux or macOS install that will install all your preferred packages, install your dotfiles, and run setup scripts to make a blank machine your machine.\nStep 1:\ncurl -fsSL https://raw.githubusercontent.com/USERNAME/dotfiles/main/bootstrap.sh | bash There is no step 2.\nI wrote this because I setup new computers frequently, and nothing I could find did everything I wanted. Ansible was too much ceremony for my personal machines. Chezmoi was awkward for dotfiles and awkward for provisioning. Stow was too limited, Nix was too much.\nIf you try Homie, I think you\u0026rsquo;ll find it\u0026rsquo;s just right: you tell it what packages you want installed, and you give it your dotfiles. It makes simple things easy, and complex things possible. Want to templatize your dotfiles? We got you. Need a script to customize your install? Done.\nBut to get back to the original story: it\u0026rsquo;s a single copy-pasted curl-bash line that\u0026rsquo;s all you need to setup (or update) your system. And it comes from your own repo, so there\u0026rsquo;s nobody to trust: the shebang you\u0026rsquo;re running is the shebang you wrote. So give it a whirl, I think you\u0026rsquo;ll like it.\nGet started # Install homie: curl -fsSL https://homie.sh/install.sh | bash homie init ~/dotfiles to scaffold a starter repo. Edit homie.toml, commit, and push to your preferred git hosting service. On any other Linux or macOS box: curl …/bootstrap.sh | bash. Read the quickstart →\nWhat you get # Symlinks, not copies. Edit ~/.zshrc and you\u0026rsquo;re editing the file in your repo. git diff shows what changed. No chezmoi edit indirection. One repo, three jobs. Dotfiles + system packages + setup scripts, declared in one homie.toml. No glue between separate tools. No state file. Every homie apply is a full reconciliation. Idempotent by construction — re-running is always safe. Static binary. No Python, no Ruby, no daemon. ~3 MB, single file. Charm-powered TUI. Spinners, progress, a friendly summary at the end. Plain output in CI. How it looks # # homie.toml [user] name = \u0026#34;Scout Homes\u0026#34; email = \u0026#34;scout@homie.sh\u0026#34; [profile] name = \u0026#34;personal\u0026#34; default_shell = \u0026#34;zsh\u0026#34; [packages] all = [\u0026#34;git\u0026#34;, \u0026#34;zsh\u0026#34;, \u0026#34;neovim\u0026#34;, \u0026#34;tmux\u0026#34;, \u0026#34;ripgrep\u0026#34;, \u0026#34;fzf\u0026#34;] fedora = [\u0026#34;util-linux-user\u0026#34;, \u0026#34;fd-find\u0026#34;] ubuntu = [\u0026#34;fd-find\u0026#34;] [vars] EDITOR = \u0026#34;nvim\u0026#34; dotfiles/ ← your repo (call it whatever you like) homie.toml bootstrap.sh home/ ← files into $HOME — .tmpl renders, the rest symlinks .zshrc .gitconfig.tmpl scripts/ ← ordered setup steps 01-shell.sh 02-tools.sh Why not just\u0026hellip;? # Homie chezmoi Ansible Stow Nix Dotfile model 🔗 symlink 📋 copy + indirection 📋 copy / template 🔗 symlink ❄️ declarative store Provisioning ✅ ❌ ✅ ❌ ✅ State file ❌ ✅ ❌ ❌ ✅ Runtime ⚡ Native ⚡ Native 🐍 Python 🐪 Perl ❄️ Nix Weight 🐁 tiny 🐕 medium 🐘 heavy 🐁 tiny 🐘 heavy See the full comparison →\n","externalUrl":null,"permalink":"/","section":"Homie","summary":"One command to make a fresh Linux or macOS box your own. # Homie gives you your own curl bash command to paste into a fresh Linux or macOS install that will install all your preferred packages, install your dotfiles, and run setup scripts to make a blank machine your machine.\nStep 1:\ncurl -fsSL https://raw.githubusercontent.com/USERNAME/dotfiles/main/bootstrap.sh | bash There is no step 2.\n","title":"Homie","type":"page"},{"content":"","externalUrl":null,"permalink":"/tags/","section":"Tags","summary":"","title":"Tags","type":"tags"}]