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 - default channel and nix upgrade #52

Open
patryk-kozak opened this issue Jul 20, 2022 · 0 comments
Open

MacOS fresh install - default channel and nix upgrade #52

patryk-kozak opened this issue Jul 20, 2022 · 0 comments

Comments

@patryk-kozak
Copy link
Member

Similar scenario to #51

After fresh install of nix on MacOS the nix-info -m output is

- system: `"x86_64-darwin"`
 - host os: `Darwin 21.5.0, macOS 10.16`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.10.3`
 - channels($USER): `""`
 - channels(root): `"nixpkgs"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`

Questions:

  • should channels for $USER be set vs root (multi-user install so probably root is OK)
  • should nixpkgs point to per-user profile for root or $USER?
  • when using nix-env it fails as it seems to be installed via nix profile ?
  • why nix upgrade-nix is failing? Is it because of nix-env failure?
 -> nix-channel --update && nix upgrade-nix
unpacking channels...
replacing old 'nix-2.10.3'
installing 'nix-2.10.3'
building '/nix/store/1bf2kfdwficnlwq679rby2013i6q8c89-user-environment.drv'...
error: opening lock file '/nix/var/nix/profiles/default.lock': Permission denied
error: program '/nix/store/3b7qrm0qjw57fmznrsvm0ai568i89hc2-nix-2.10.3/bin/nix-env' failed with exit code 1

Suggested to run nix profile install nixpkgs#bash -vvvv --extra-experimental-features nix-command --extra-experimental-features flakes to check if it errors, but that's actually passing.

@Helcaraxan

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