Hacker News new | ask | show | jobs
by altgans 1711 days ago
With Home-Manager (HM) you can "bake" your dot files into the config [1]. That means they are stored in your "generation" and then get symlinked to the right directory.

Either you write the dotfile directly in your config (Nix syntax) or you write the file like normal, and then tell HM to store it. I like the second version better, as I find it more natural.

The problem with the "baking" approach is that it is very annoying to do a small change to a config: you have to rebuild the system every time.

[1]: https://rycee.net/posts/2017-07-02-manage-your-home-with-nix...