Using chezmoi with age View article history Edit article

Published: , Updated:
Talks about: <a class="post-tag post-tag-age" href="/tags/age">age</a>, <a class="post-tag post-tag-chezmoi" href="/tags/chezmoi">chezmoi</a>, <a class="post-tag post-tag-dotfiles" href="/tags/dotfiles">dotfiles</a>, and <a class="post-tag post-tag-encryption" href="/tags/encryption">encryption</a>

age is another tool supported by chezmoi to keep data private. Compared to gpg it is much simpler by focusing on the encryption parts only.

Add the following snippet to your .chezmoi.toml to configure chezmoi to use age:

encryption = "age"
[age]
  identity = "path/to/age/private-key"
  recipient = "age...public...key..."

Adding files to your chezmoi source directory remains the same as compared to using gpg - just call chezmoi add --encrypt path/to/file.