feat: Some adaptations for termux

This commit is contained in:
2026-07-16 08:29:15 +00:00
parent c1af60939e
commit 6a4e3f2699
4 changed files with 39 additions and 2 deletions
+6
View File
@@ -36,3 +36,9 @@ hosts:
- age - age
- cargo:rage - cargo:rage
configs: {} configs: {}
termux-debian:
toolboxes:
- terminal
- dev-tools
tools: {}
configs: {}
+21
View File
@@ -1,5 +1,26 @@
--- ---
packages: 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: ubuntu:
common: common:
- tar - tar
+10
View File
@@ -9,6 +9,16 @@
{{- end }} {{- end }}
{{- 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 }} {{- if $isUbuntu }}
# Ubuntu common # Ubuntu common
+2 -2
View File
@@ -1,7 +1,7 @@
{{/* .chezmoitemplates/mise-tools */}} {{/* .chezmoitemplates/mise-tools */}}
{{- $hostname := .chezmoi.hostname -}} {{- $hostname := output "hostname" | trim -}}
# Configuration pour l'hôte {{ $hostname }}
{{- $currentHost := index .hosts $hostname -}} {{- $currentHost := index .hosts $hostname -}}
{{- if $currentHost }} {{- if $currentHost }}
{{- /* 1. Parcourir les toolboxes associées à cet hôte */}} {{- /* 1. Parcourir les toolboxes associées à cet hôte */}}
{{- range $toolboxName := $currentHost.toolboxes }} {{- range $toolboxName := $currentHost.toolboxes }}