9f775f5e6d
- /home/.chezmoiscripts/universal/run_onchange_after_07-docker-plugins.tmpl - /home/.chezmoiscripts/universal/run_onchange_after_14-timeshift.tmpl - /home/.chezmoiscripts/universal/run_onchange_after_14-keybase.tmpl - /home/.chezmoiscripts/universal/run_onchange_after_24-vpn-linux.tmpl - /software.yml - /docs/TODO.md
20 lines
661 B
Cheetah
20 lines
661 B
Cheetah
{{- if eq .host.distro.family "linux" -}}
|
|
#!/usr/bin/env bash
|
|
|
|
# Keybase config hash: {{ include (joinPath .chezmoi.homeDir ".config" "keybase" "config.json") | sha256sum }}
|
|
|
|
{{ includeTemplate "universal/profile" }}
|
|
{{ includeTemplate "universal/logg" }}
|
|
|
|
if command -v keybase > /dev/null; then
|
|
logg info 'Ensuring /etc/keybase is a directory'
|
|
sudo mkdir -p /etc/keybase
|
|
|
|
KEYBASE_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/keybase/config.json"
|
|
logg info "Copying $KEYBASE_CONFIG to /etc/keybase/config.json"
|
|
sudo cp -f "$KEYBASE_CONFIG" /etc/keybase/config.json
|
|
else
|
|
logg info 'The `keybase` executable is not available'
|
|
fi
|
|
|
|
{{ end -}}
|