From 6a4e3f269910b0cb5be2a562c4248e898ea9a4da Mon Sep 17 00:00:00 2001 From: Xavier Logerais Date: Thu, 16 Jul 2026 08:29:15 +0000 Subject: [PATCH] feat: Some adaptations for termux --- .chezmoidata/hosts.yaml | 6 ++++++ .chezmoidata/packages.yaml | 21 +++++++++++++++++++++ .chezmoitemplates/mise-bootstrap-packages | 10 ++++++++++ .chezmoitemplates/mise-tools | 4 ++-- 4 files changed, 39 insertions(+), 2 deletions(-) diff --git a/.chezmoidata/hosts.yaml b/.chezmoidata/hosts.yaml index 4bc12eb..4c04525 100644 --- a/.chezmoidata/hosts.yaml +++ b/.chezmoidata/hosts.yaml @@ -36,3 +36,9 @@ hosts: - age - cargo:rage configs: {} + termux-debian: + toolboxes: + - terminal + - dev-tools + tools: {} + configs: {} diff --git a/.chezmoidata/packages.yaml b/.chezmoidata/packages.yaml index 80bef0a..d928d9b 100644 --- a/.chezmoidata/packages.yaml +++ b/.chezmoidata/packages.yaml @@ -1,5 +1,26 @@ --- packages: + debian: + common: + - tar + - zip + - unzip + - manpages + - manpages-fr + - bash + - bash-completion + - screen + - tmux + - curl + - wget + - vim + - git + - tree + - build-essential + server: [] + desktop: + - zsh + - fish ubuntu: common: - tar diff --git a/.chezmoitemplates/mise-bootstrap-packages b/.chezmoitemplates/mise-bootstrap-packages index 996ead2..d68481c 100644 --- a/.chezmoitemplates/mise-bootstrap-packages +++ b/.chezmoitemplates/mise-bootstrap-packages @@ -9,6 +9,16 @@ {{- end }} {{- end -}} +{{/* Debian */}} +{{- if and (eq .chezmoi.os "linux") (hasKey .chezmoi "osRelease") (eq .chezmoi.osRelease.id "debian") -}} + +# Debian common +{{- range .packages.debian.common }} +"apt:{{- . }}" = "latest" +{{- end }} +{{- end -}} + +{{/* Ubuntu */}} {{- if $isUbuntu }} # Ubuntu common diff --git a/.chezmoitemplates/mise-tools b/.chezmoitemplates/mise-tools index b3b4f09..b9e49f0 100644 --- a/.chezmoitemplates/mise-tools +++ b/.chezmoitemplates/mise-tools @@ -1,7 +1,7 @@ {{/* .chezmoitemplates/mise-tools */}} -{{- $hostname := .chezmoi.hostname -}} +{{- $hostname := output "hostname" | trim -}} +# Configuration pour l'hôte {{ $hostname }} {{- $currentHost := index .hosts $hostname -}} - {{- if $currentHost }} {{- /* 1. Parcourir les toolboxes associées à cet hôte */}} {{- range $toolboxName := $currentHost.toolboxes }}