#asknostr #NixOS #HomeManager

I never figured out Home Manager. I would like most of my dotfiles to be handled by Home Manager, and I'd like them--and my entire configuration--put into a git repo.

My question is this: which directory (or directories) _exactly_ should I put into a git repo to accomplish this?

Make me smarter, and I send the #zaps.

TIA

Reply to this note

Please Login to reply.

Discussion

Do you currently use anything to manage your dotfiles? I have mine set up in a git repo I clone into a folder called dotfiles at my home directory and then use stow to symlink them.

I’ve fallen down the #nixos rabbit hole for packages and am considering using home-manager but haven’t taken the plunge yet.

Not really, no. I manually back them up to a git repo from time to time, but nothing more sophisticated than that. Would like to take advantage of the home-manager method if it's actually better.

I’d definitely recommend using stow at least to get yourself off the ground. Setup is dead simple, just install it with your package manager, set up an ignore file, run the command anytime you add a new dotfile and you’re moving.

Here’s my repo if you want an example: https://github.com/mmcxii/dotfiles

I’m going to take the plunge on home manager during the end of year lull. I’ve heard it can be tedious while setting up because you have to rebuild it every time you change your dotfiles, but since I don’t do that too often maybe I’ll like it.