21 lines
661 B
Bash
21 lines
661 B
Bash
#!/usr/bin/env bash
|
|
|
|
# universal/essential-packages hash: {{ include (joinPath ".chezmoitemplates" "universal" "essential-packages") | sha256sum }}
|
|
|
|
{{ includeTemplate "universal/logg" }}
|
|
|
|
{{- $packages := splitList " " (includeTemplate "universal/essential-packages" .) -}}
|
|
{{- $gpgDependencies := list
|
|
"gnupg2"
|
|
"gnupg-agent"
|
|
"gnupg-curl"
|
|
"scdaemon"
|
|
"pcscd"
|
|
-}}
|
|
{{- $packages = concat $packages $gpgDependencies -}}
|
|
|
|
logg 'Installing common dependencies using `apt-get`'
|
|
logg info 'Dependencies: {{ $packages | sortAlpha | uniq | join " " -}}'
|
|
|
|
sudo apt-get update
|
|
sudo apt-get install -y --no-install-recommends {{ $packages | sortAlpha | uniq | join " " -}}
|