Evertras / simple-homemanager

A practical guide to getting started with home manager with flakes and all that 2024 goodness.
MIT License
151 stars 14 forks source link

home-manager repository location #8

Open jameshulse opened 1 month ago

jameshulse commented 1 month ago

In the docs (https://github.com/Evertras/simple-homemanager/blob/main/02-basic-repository-setup.md#init-a-git-repository) it says that we can create a my-home-manager (or similar) directory anywhere. But in some guides, and with some installation methods, we also end up with a default ~/.config/home-manager folder with a default config.

Is there a reason we aren't using the ~/.config location?

Thanks

joaopms commented 4 weeks ago

Personally I ended up using /etc/nixos since I started using it as a git repo for my configuration.nix. For me it makes more sense to keep it that way, leaving ~/.config to be managed by Home Manager.

I've also seen ~/.config/home-manager being used, and the same question has come up.

But after all, I guess it's just a matter of preference?

jameshulse commented 4 weeks ago

Thanks. I'm not on NixOS, so I wonder if it's when installing on non-NixOS OS's that we end up with ~/.config/home-manager. I might try and consolidate the folders and see if I break anything...