Live data from Hacker News

Yadm: Yet Another Dotfiles Manager

github.com

1–10 of 25 posts

Re: Yadm: Yet Another Dotfiles Manager

#2
Transitioned from gnu stow to nix/home-manager and haven't looked back.

The great part about that setup is my configuration contains not just my dotfiles, but also the installation of the programs themselves.

I don't use the "nix" way of configuration though, I instead have home manager symlink everthing for me. Then I can bail on nix anytime and not have to translate all my files back to yaml.

Glad programs like the above exist though for those who don't want to sink time into nix but want to reasonably track configuration.

Re: Yadm: Yet Another Dotfiles Manager

#3
Does this program allow linking the same file to different locations on MacOS vs Linux? I have a few config files like the vscode settings.json that end up in different paths but have the same content. (I see it allows for files that are OS specific but not clear if there is a way to keep them in sync if they are the same, but just need different paths)

I use stow at the moment and it is almost perfect but I don't believe it can do that without multiple symlinks or something messy. Didn't like home manager and other dotfiles solutions seemed too bloated for my case

Re: Yadm: Yet Another Dotfiles Manager

#4
post #3

Does this program allow linking the same file to different locations on MacOS vs Linux? I have a few config files like the vscode settings.json that end up in different paths but have the same content. (I see it allows for files that are OS specific but not clear if there is a way to keep them in sync if they are the same, but just need different paths) I use stow at the moment and it is almost perfect but I don't be…

Yes, it does. https://yadm.io/docs/alternates#

I used yadm for a while. I switched to Chezmoi (https://www.chezmoi.io) though. Same ideas, but much better execution IMO.

Re: Yadm: Yet Another Dotfiles Manager

#5
Cool, I'm going to give this a try.

I got frustrated with the chezmoi workflow and had Claude write something similar for me the other day.

https://github.com/snth/dot

It's just a simple bash script that acts as a wrapper around git and copies tracked files to a dotfiles directory and back.

Re: Yadm: Yet Another Dotfiles Manager

#6
post #4
post #3

Does this program allow linking the same file to different locations on MacOS vs Linux? I have a few config files like the vscode settings.json that end up in different paths but have the same content. (I see it allows for files that are OS specific but not clear if there is a way to keep them in sync if they are the same, but just need different paths) I use stow at the moment and it is almost perfect but I don't be…

Yes, it does. https://yadm.io/docs/alternates# I used yadm for a while. I switched to Chezmoi ( https://www.chezmoi.io ) though. Same ideas, but much better execution IMO.

I'm surprised by this because I find the chezmoi workflow very annoying, to the extent that I wrote my own thing (see my other comment).

Where did you find yadm fall short?

Re: Yadm: Yet Another Dotfiles Manager

#10
post #2

Transitioned from gnu stow to nix/home-manager and haven't looked back. The great part about that setup is my configuration contains not just my dotfiles, but also the installation of the programs themselves. I don't use the "nix" way of configuration though, I instead have home manager symlink everthing for me. Then I can bail on nix anytime and not have to translate all my files back to yaml. Glad programs like the…

Gnu guix has a system that does this as well. I just started using it and have had use for it already: replicating my home environment on another computer was flawless.

Copied one dir over, ran guix home reconfigure and after everything installed, the environment was... Almost the same. I just need to write an integration that installs flatpaks since some apps are only available there.

Post reply on HN