Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: path is a symlink error #5402

Open
2 tasks done
jennydaman opened this issue May 13, 2024 · 0 comments
Open
2 tasks done

bug: path is a symlink error #5402

jennydaman opened this issue May 13, 2024 · 0 comments
Assignees
Labels
bug triage Issues or feature request that have not been triaged yet

Comments

@jennydaman
Copy link

Are you following the right branch?

  • My Nixpkgs and Home Manager versions are in sync

Is there an existing issue for this?

  • I have searched the existing issues

Issue description

Hello, I have a very esoteric setup (on a legacy shared system). These are Linux servers where:

  • /neuro is a symlink to /net/redacted.server.server.server/Data/Shares/LabName/neuro, a NFSv3 mount via autofs
  • user is a LDAP user jennings.zhang
  • $HOME is /neuro/user/jennings.zhang, which itself is a symlink to /neuro/labs/grantlab/users/jennings.zhang
  • I'm using nix-portable with NP_RUNTIME=brwap set

My home-manager flake.nix can be found here:

https://gitlab.com/jennydaman/hm-jia/-/blob/62162cec91ebd6f77b089988677e99c5b3848ab4/flake.nix

I typically want to run home-manager switch like this:

home-manager switch --impure --flake /neuro/labs/grantlab/users/jennings.zhang/.config/home-manager#restricted

In rare circumstances, this works, but I can't discern why. Usually, I get an error instead:

error:
       … while fetching the input 'git+file:///neuro/labs/grantlab/users/jennings.zhang/.config/home-manager'

       error: path '/neuro/labs/grantlab/users/jennings.zhang/.config/home-manager/neuro/labs/grantlab' is a symlink

These other permutations cause the same error:

home-manager switch --impure --flake /neuro/users/jennings.zhang/.config/home-manager#restricted
env HOME=/neuro/labs/grantlab/users/jennings.zhang home-manager switch --impure --flake /neuro/labs/grantlab/users/jennings.zhang/.config/home-manager#restricted

However, the command below works 100% of the time:

cd ~/.config/home-manager
home-manager switch --impure --flake .#restricted

Maintainer CC

No response

System information

- system: `"x86_64-linux"`
 - host os: `Linux 6.0.12-76060006-generic, Ubuntu, 22.04.3 LTS (Jammy Jellyfish), nobuild`
 - multi-user?: `no`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.20.6`
 - nixpkgs: `/net/redacted.server.server.server/Data/Shares/LabName/neuro/labs/grantlab/users/jennings.zhang/.nix-portable/channels/nixpkgs`
@jennydaman jennydaman added bug triage Issues or feature request that have not been triaged yet labels May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug triage Issues or feature request that have not been triaged yet
Projects
None yet
Development

No branches or pull requests

4 participants