Skip to content

Comment on Home in Nix – dotfile management

Comments

My $HOME is a git repo for my dotfiles, with a .gitignore containing just "*". Simple, zero abstractions, no need for additional management.

Further, you can create a bare git repo and make $HOME it's working tree.

More details here [1].

[1] https://news.ycombinator.com/item?id=11071754

I've recently started using yadm, which is a light abstraction on top of git. One big reason - "Alternate Files" support - which makes it easy to have MacOS and Linux binaries for the same tools, along with the rest of my shell setup, in one Git repo.

Same here. New machine? Add a remote, checkout master.

funny enough, this technique is also described here : https://drewdevault.com/2019/12/30/dotfiles.html

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.