Open golddranks opened 1 year ago
After this, I tried symlinking each of the files home.nix, flake.nix and flake.lock separately. This setup works.
Fwiw I only have flake.nix
linked, and it works for me. I think it understands that any imports should be relative to the real location, rather than the link location.
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 have been using home manager with flakes for a week without problems, having
home.nix
,flake.nix
andflake.lock
under~/.config/home-manager/
. Now I decided to move my home manager config to a git repo where I keep my other systems' (and this systems'configuration.nix
) config too. It is checked out at~/nixos_configs
. So, make~/.config/home-manager
a symlink pointing~/nixos_configs/SYSNAME/home-manager
. As I testhome-manager switch
, it fails with following:Examining
/nix/store/2igw8w883ri968qz76rv8nw2zi8vdpcg-source
reveals that it's an exact copy of~/nixos_configs
except that it doesn't contain the~/nixos_configs/SYSNAME/home-manager
dir!Trying to clean things up, uninstalling also fails:
So clearly there's something weird happening; home manager seems to be doing something with the
home-manager
dir that makes symlinks behave differently from actual directories.Everything returns to normal, if I move the directory back.
After this, I tried symlinking each of the files
home.nix
,flake.nix
andflake.lock
separately. This setup works.Maintainer CC
@rycee
System information