Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ export DOTFILES_GUI_MAC_CASKS={{ (.packages.gui.mac_casks | default (list)) | so
export DOTFILES_GUI_LINUX_APT={{ (.packages.gui.linux_apt | default (list)) | sortAlpha | uniq | join " " | quote }}
export DOTFILES_GUI_LINUX_DNF={{ (.packages.gui.linux_dnf | default (list)) | sortAlpha | uniq | join " " | quote }}

# Re-fire when the mise tool list changes. packages.yaml is already rendered
# into the DOTFILES_* vars above (edits there change this script); the mise
# config is read by mise directly, so embed its hash to trigger `mise install`
# on tool add/remove (chezmoi's documented run_onchange dependency idiom).
# mise-config-hash: {{ include "dot_config/mise/config.toml.tmpl" | sha256sum }}

# GITHUB_TOKEN for mise's GitHub-backed installs: pre-exported env wins.
# Otherwise mise authenticates itself via `github.credential_command =
# "gh auth token"` (rendered into ~/.config/mise/config.toml when gh is on
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Prompted on init (the detected env is shown as a hint; you pick). Cached in `~/.
| `dev` | core + full CLI toolchain: 4 languages (Go/Python/Node/Rust) + ~30 mise binaries (kubectl/helm/jq/gh/delta/… + `op` + `rtk` + `claude-code` + `codex`) + a few OS-native brews/apts. ~1.9 GB first apply. | Headless dev box |
| `workstation` | dev + GUI apps. macOS casks: iterm2, docker-desktop, visual-studio-code, ngrok, 1password, fonts. | Primary GUI machine |

Exact tool lists are the source of truth in `dot_config/mise/config.toml.tmpl` (mise) and `.chezmoidata/packages.yaml` (brew/apt/dnf). Add a mise tool: `mise registry | grep -i <name>` → add the slug to the config (inside the `$isDev` block unless every tier needs it) → `chezmoi apply`.
Exact tool lists are the source of truth in `dot_config/mise/config.toml.tmpl` (mise) and `.chezmoidata/packages.yaml` (brew/apt/dnf). Add a mise tool: `mise registry | grep -i <name>` → add the slug to the config (inside the `$isDev` block unless every tier needs it) → `chezmoi apply` (the install script embeds the mise-config hash, so apply auto-reruns `mise install` — no manual step).

Docker is intentionally not in `dev` (the `docker.io` vs `docker-ce` apt conflict breaks installs) — install it per-machine, or use the macOS Docker Desktop cask in `workstation`.

Expand Down
3 changes: 2 additions & 1 deletion dot_config/mise/config.toml.tmpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{{- /*
Profile-aware mise config. core: fzf+zoxide only. dev/workstation: full toolchain.
Per-machine opt-out: ~/.config/mise/config.local.toml (auto-merged, untracked).
Adding a tool: `mise registry | grep -i <name>` → use the slug shown.
Adding a tool: `mise registry | grep -i <name>` → add the slug → `chezmoi apply`
(run_onchange_after_50 embeds this file's hash, so apply auto-runs `mise install`).
*/ -}}
{{- $profile := .profile | default "core" -}}
{{- $isDev := or (eq $profile "dev") (eq $profile "workstation") -}}
Expand Down
Loading