u/JohnnyboixD

How do i properly use Chezmoi to manage dotfiles for Windows & Linux?

My goal for my workflow when i am using Windows or Linux is to use the same software and tooling across both systems. In my case it also gets a little bit more difficult because i use the native Windows versions of the packages i also use on Linux.

One example of this is using Neovim as my text-editor, and Yazi as my file-manager. I am able to use these on both OSes, and the usage is mostly the same.

I want to publish config files to my dotfiles repo:

- containing secrets (I already use BitWarden if that is useful information)

- that don't have sensitive information, but is different from the version intended for the git repo

- that are slightly/largely different from the other OS' version

Previously i was using GNU stow, but managing file differences between Windows and Linux got tiring.

I heard that Chezmoi was the tool to use for my use case, and i've recently set it up, but i am struggling with templating & managing secrets.

I've had issues with chezmoi making the template & source file identical using the chezmoi apply command, but this is most likely user error on my part.

Thanks to anyone who takes the time to provide their insights on this post.

reddit.com
u/JohnnyboixD — 6 days ago