Hacker News new | ask | show | jobs
by dayjah 311 days ago
I found the syncing process in chezmoi to be so hard to mentally model.

I’d often change a file, forget that it was backed by the chezmoi store, later find myself trying to reconcile the differences, just so I could commit and share w/ another computer. nix + home-manager and snowfall lib, once over the multi month ramp up, have been such a breath of fresh air in multi system management

2 comments

I ended up writing some pretty hacky elisp to automatically load my chezmoi templates if I try to edit a Chezmoi-managed file. It'll also handle applying and pushing saved changes to my git remote so I don't forget that either.

https://marcusb.org/posts/2025/01/frictionless-dotfile-manag...

This command solve the problem for me: https://www.chezmoi.io/reference/commands/merge-all/