feat: Some adaptations for termux
This commit is contained in:
@@ -36,3 +36,9 @@ hosts:
|
||||
- age
|
||||
- cargo:rage
|
||||
configs: {}
|
||||
termux-debian:
|
||||
toolboxes:
|
||||
- terminal
|
||||
- dev-tools
|
||||
tools: {}
|
||||
configs: {}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user