e43ff06510
- /system/usr/local/bin/executable_rclone-mount - /system/etc/systemd/system/r2-docker.service - /system/etc/systemd/system/r2-{{ .user.username }}.service.tmpl - /system/etc/sanoid/sanoid.conf.TODO - /system/etc/cockpit/machines.d/TODO.cockpit-machine.json.tmpl - /system/etc/keybase/config.json - /system/etc/rcloneignore - /system/.chezmoidata.yaml - /system/.chezmoiexternal.toml - /system/.chezmoiignore - /home/dot_config/rclone/rcloneignore - /home/dot_config/rclone/s3-docker.service.tmpl - /home/dot_config/rclone/s3-user.service.tmpl - /home/dot_config/rclone/merge_rclone.conf - /home/dot_config/cockpit/machines.d/cockpit-machine.json.TODO - /home/dot_config/keybase/config.json - /home/.chezmoiscripts/universal/run_onchange_after_14-keybase.tmpl - /home/.chezmoiscripts/universal/run_onchange_after_20-font.tmpl - /home/.chezmoiscripts/universal/run_onchange_after_50-rclone.tmpl - /home/.chezmoiexternal.toml
18 lines
649 B
Cheetah
18 lines
649 B
Cheetah
{{- if eq .host.distro.family "linux" -}}
|
|
#!/usr/bin/env bash
|
|
|
|
# timeshift.json 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
|