Skip to content

chezmoi apply,warning 'encryption' not set, using gpg configuration. Check if 'encryption' is correctly set as the top-level key. #4215

Closed Answered by halostatue
qiao-summer asked this question in Q&A
Discussion options

You must be logged in to vote

Please paste text versions in the future, but TOML has some idiosyncrasies (that is to say that it was intended to be better than YAML and JSON with no sharp edges, but only managed to invent some really nasty new sharp edges).

encryption is a top-level configuration and TOML is read top-to-bottom. The moment that the parser sees a [header] block, every key from that point forward is under that header level, until the next [header] block.

So your encryption setting must be above data to be found by chezmoi configuration (and you need to look in .chezmoi for that setting).

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by halostatue
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants