Plugin for Dotbot, that adds sops
directive, which allows you to decrypt files encrypted with sops.
- Simply add this repo as a submodule of your dotfiles repository:
git submodule add https://github.com/elogiclab/dotbot-sops.git
- Pass this folder (or directly sops.py file) path with corresponding flag to your Dotbot script:
-p /path/to/file/sops.py
or
--plugin-dir /pato/to/plugin/folder
- sops:
systemd/cryfs.conf:
source: systemd/cryfs.sops.conf
You need to have sops installed and the .sops.yaml file present in the directory where the encrypted file is located.
Typically you will have the encrypted file committed to the repository and the plaintext file specified in the .gitignore. Place the sops directive before the linking process so that you will have the decrypted file ready to be linked.
For more information on how to encrypt files with sops refer to the sops documentation. This is a practical example of how to encrypt a file using gpg.