Compare commits

...
5 Commits
Author SHA1 Message Date
xavierandClaude Sonnet 5 5987036389 feat(tools): Add copilot to the ai toolbox
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-18 23:07:01 +02:00
xavierandClaude Sonnet 5 75ae00ce12 fix(mise): Trigger mise install when templated config data changes
run_onchange_after_mise-install.sh.tmpl hashed the raw contents of
config.toml.tmpl to detect changes, but that file only pulls in real
content through named templates ({{ template "..." }}) fed by
.chezmoidata. Editing that data left the raw .tmpl text (and thus the
hash) unchanged, so mise install silently stopped firing.

Switch the named-template calls to includeTemplate, which chezmoi can
resolve outside the normal source-state parsing pass (unlike the
template action, see https://github.com/twpayne/chezmoi/issues/3334).
This lets the run_onchange script hash the actual rendered output via
includeTemplate instead of the static source text.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-18 23:00:36 +02:00
xavier a4e2eadbe9 feat(mise): Allow to declare bootstrap package per host
Whitout this, you can only specify packages per os (distrib).
2026-08-03 22:28:22 +02:00
xavier 06fb51ab5e feat: Add template to add an header to managed files more easily 2026-08-03 22:26:55 +02:00
xavier 28183fd943 fix(mise): Fix dependency for broot 2026-08-03 22:25:49 +02:00
6 changed files with 28 additions and 7 deletions
+4
View File
@@ -55,6 +55,8 @@ hosts:
configs: {} configs: {}
# Termux (application de terminal pour android) # Termux (application de terminal pour android)
termux-debian: termux-debian:
packages:
- apt:zsh
users: users:
root: root:
toolboxes: toolboxes:
@@ -65,6 +67,8 @@ hosts:
- terminal - terminal
- dev-tools - dev-tools
termux-ubuntu: termux-ubuntu:
packages:
- apt:zsh
users: users:
root: root:
toolboxes: toolboxes:
+2 -1
View File
@@ -16,6 +16,7 @@ tools:
- zoxide # Quickly jump to previouously visited directories - zoxide # Quickly jump to previouously visited directories
- broot # Navigate easily inside the file system - broot # Navigate easily inside the file system
- glow # Render markdown on the CLI - glow # Render markdown on the CLI
- cargo-binstall # Needed for broot
dev-tools: dev-tools:
- jq - jq
- yq - yq
@@ -33,7 +34,6 @@ tools:
- node - node
- go - go
- rust - rust
- cargo-binstall
devops: devops:
- docker-cli - docker-cli
- podman - podman
@@ -54,6 +54,7 @@ tools:
- claude - claude
- gemini-cli - gemini-cli
- codex - codex
- copilot
# # Password managers # # Password managers
# # vault = "latest" # # vault = "latest"
+4
View File
@@ -0,0 +1,4 @@
#
# Ce fichier est généré automatiquement par l'outil chezmoi.
# Préférez apporter vos modification depuis chezmoi que directement ici.
#
+12
View File
@@ -41,3 +41,15 @@
{{- end }} {{- end }}
{{- end }} {{- end }}
{{/* Host specific */}}
{{- $hostname := output "hostname" | trim -}}
{{- $currentHost := index .hosts $hostname -}}
{{- if $currentHost }}
{{- if hasKey $currentHost "packages" }}
# Paquets personnalisés pour l'hôte {{ $hostname }}
{{- range $currentHost.packages }}
"{{- . }}" = "latest"
{{- end }}
{{- end }}
{{- end }}
+3 -4
View File
@@ -1,5 +1,4 @@
# Ce fichier est généré automatiquement par l'outil chezmoi {{ includeTemplate "chezmoi-managed-header" . }}
# Préférez apporter vos modification depuis chezmoi que directement ici
[settings] [settings]
experimental = true experimental = true
@@ -10,7 +9,7 @@ binstall = true
######################### [ Bootstrap ] ######################### ######################### [ Bootstrap ] #########################
[bootstrap.packages] [bootstrap.packages]
{{ template "mise-bootstrap-packages" . }} {{ includeTemplate "mise-bootstrap-packages" . }}
# coreutils grep less # coreutils grep less
# tig # tig
@@ -37,7 +36,7 @@ neovim = "latest"
tree-sitter = "latest" tree-sitter = "latest"
# Tools automated with chezmoi # Tools automated with chezmoi
{{ template "mise-tools" . }} {{ includeTemplate "mise-tools" . }}
# Password managers # Password managers
# vault = "latest" # vault = "latest"
+3 -2
View File
@@ -1,6 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Déclencheur automatique : ce script se réexécutera si le config.toml de mise change. # Déclencheur automatique : ce script se réexécutera si le config.toml de mise change,
# hash: {{ include "private_dot_config/mise/config.toml.tmpl" | sha256sum }} # y compris quand seules les données (.chezmoidata) utilisées par ses templates changent.
# hash: {{ includeTemplate "private_dot_config/mise/config.toml.tmpl" . | sha256sum }}
export PATH="${HOME}/.local/bin:$PATH" export PATH="${HOME}/.local/bin:$PATH"