884 B
884 B
Prerequisites
- ansible: for installing the dofiles.
- git-crypt: for handling sensitive data in the repo (installed via ansible cookbook).
- gpg: for decrypting the key used by
git-crypt
(installed via ansible cookbook).
Installation
Steps:
- Install ansible.
- Create an SSH key with (e.g. with
ssh-keygen -t ed25519 -C "$(whoami)@$(hostname)"
) and register it. - Clone the repo.
- Play the
dotfiles.yml
ansible playbook. - Decrypt key & initialize git-crypt to access sensitive data.
Cookbook:
sudo apt-get install ansible
git clone git@git.schauenburg.me:fernando/dotfiles.git $HOME/.dotfiles
cd $HOME/.dotfiles
ansible-playbook -i hosts.ini dotfiles.yml
gpg -d --output - <(base64 -d .key) | git crypt unlock -