Open samuela opened 1 year ago
The default configuration path was changed in https://github.com/nix-community/home-manager/commit/cae54dc45c0d61c99c1dc8b04bc42f36c76f9771 from ~/.config/nixpkgs/home.nix
to ~/.config/home-manager/home.nix
. Maybe your old home.nix is still in the old path?
on further investigation i believe this was actually due to the location of home.nix
moving from ~/.config/nixpkgs/home.nix
to ~/.config/home-manager/home.nix
. The UX here is a bit awkward. How're users supposed to know to move their configurations?
EDIT: @ncfavier beat me to it!
You don't have to run the installer every time you update. If you hadn't, the next switch
would have warned you about the deprecated path.
Maybe we could add a check for ~/.config/nixpkgs/home.nix
here just in case?
You don't have to run the installer every time you update.
Yeah, unfortunately I'm in a situation where I need to reinstall nix and home-manager (automatically) on every boot
Thank you for your contribution! I marked this issue as stale due to inactivity. Please be considerate of people watching this issue and receiving notifications before commenting 'I have this issue too'. We welcome additional information that will help resolve this issue. Please read the relevant sections below before commenting.
* If this is resolved, please consider closing it so that the maintainers know not to focus on this. * If this might still be an issue, but you are not interested in promoting its resolution, please consider closing it while encouraging others to take over and reopen an issue if they care enough. * If you know how to solve the issue, please consider submitting a Pull Request that addresses this issue.
* If you are also experiencing this issue, please add details of your situation to help with the debugging process. * If you know how to solve the issue, please consider submitting a Pull Request that addresses this issue.
Don't be afraid to manually close an issue, even if it holds valuable information. Closed issues stay in the system for people to search, read, cross-reference, or even reopen – nothing is lost! Closing obsolete issues is an important way to help maintainers focus their time and effort.
Are you following the right branch?
Is there an existing issue for this?
Issue description
I just ran the installer off of
master
two days ago and it overwrote my perfectly customizedhome.nix
config 😟 Unfortunately I did not log exactly which commit this was, but I can confirm that it did destroy myhome.nix
. In particular, I ranMaintainer CC
No response
System information