Skip to content

elogiclab/dotbot-sops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dotbot sops Plugin

Plugin for Dotbot, that adds sops directive, which allows you to decrypt files encrypted with sops.

Installation

  1. Simply add this repo as a submodule of your dotfiles repository:
git submodule add https://github.com/elogiclab/dotbot-sops.git
  1. 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

Usage

Example config

- 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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages