Advice for managing chezmoi data? #2114
-
I have just started migrating my dotfiles repository from disastrous hack job to chezmoi. I am currently experimenting with templating and it looks like something that would have helped me a lot in the past. Now I am trying to figure out what the best way to keep track of chezmoi data would be. My use case as of now is very simple. An example is the names of Xrander sinks. In i3:
laptop_monitor: DP-0
external_monitor: DP-2 This file is committed to the repository. If I have to change these values on my work laptop, I can create Is there a better way than this? My main concern is that if I am setting up a new machine, I don't want to have to figure out which data values to provide by either reading through the templates or via trial-and-error. Keeping this in mind, I can commit If I am making a mistake somewhere or if you can suggest any improvements, feel free to let me know. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
As a rough guideline:
Personally, use a configuration file template to generate my machine-specific configuration file. |
Beta Was this translation helpful? Give feedback.
As a rough guideline:
~/.config/chezmoi/chezmoi.yaml
is for data which is specific to the current machine.~/.local/share/chezmoi/.chezmoidata.yaml
is for data which is shared across all of your machines.Personally, use a configuration file template to generate my machine-specific configuration file.