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

MacOS fresh install - profile created in /Users/root vs /Users/$USER #51

Open
patryk-kozak opened this issue Jul 20, 2022 · 1 comment

Comments

@patryk-kozak
Copy link
Member

patryk-kozak commented Jul 20, 2022

version: nix-2.10.3
darwin: 21.5.0
macOS: 10.16
multi-user: yes

Scenario:

  1. Run MacOS
  2. Install nix via sh <(curl -L https://nixos.org/nix/install)
  3. Checkout Disruptor
  4. Run disruptor nix-shell via ./nix-shell.sh
  5. Error appears
bash: /Users/$USER/.nix-profile/etc/profile.d/nix.sh: No such file or directory
bash: /Users/$USER/.nix-profile/etc/profile.d/nix.sh: No such file or directory

User provided the information that profile is created under /Users/root, not /Users/$USER which triggers the above error.

In my early investigation it looks like the first invocation of shell may be run with sudo permissions which is configuring profile under /Users/root and not /Users/$USER.


@Helcaraxan

@patryk-kozak
Copy link
Member Author

@r2r-dev @AleksanderGondek LMK if what I described makes any sense to you guys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant