This repository has been archived on 2024-04-29. You can view files and clone it, but cannot push or open issues or pull requests.
vyos-config/scripts/vyos-postconfig-bootup.script

25 lines
631 B
Text
Raw Normal View History

2023-03-29 13:30:45 -05:00
#!/bin/sh
# This script is executed at boot time after VyOS configuration is fully
# applied. Any modifications required to work around unfixed bugs or use
# services not available through the VyOS CLI system can be placed here.
# Add dotfiles for home directory
tee /home/vyos/.gitconfig <<END
[init]
defaultBranch = main
[safe]
directory = /config
[user]
email = joe@veri.dev
name = Joseph Hanson
END
#
tee -a /home/vyos/.bash_aliases <<END
export SOPS_AGE_KEY_FILE=/config/secrets/age.key
export GIT_SSH_COMMAND="ssh -i /config/secrets/id_ed25519"
export VISUAL=nano
export EDITOR=nano
alias podman="sudo podman"
END
#