Replies: 2 comments 5 replies
-
That is correct. It has to be this way because otherwise there would be a circular dependency between
|
Beta Was this translation helpful? Give feedback.
-
According to the documentation (1, 2), the If dynamic data for your machines is needed, there are at least two approaches which I personally use. First, you can conditionally set variables in your Second, you can store your conditional data as templates and then load them in your desired config files with the ---
foo:
bar: {{ .someOption | ternary "blahblah" "tralala" }}
... And then you can load this data in any templated config files:
This template will generate |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I can't seem to include/exclude data files (.chezmoidata. or .chezmoidata/*.) via the .chezmoiignore file. I use the .chezmoiignore file to include/exclude files/scripts/etc based on logic or wholesale within that file... but can't seem to do it with data files. Is it possible somehow, but I'm needing to use some specific format for these types of paths (like list .local/chezmoi/.chezmoidata/foo.toml) or something? Or can this be a new feature request? Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions