Skip to content

Most nix commands not working on a fresh MacOS 15.2 install #12339

@acovaci

Description

@acovaci

Describe the bug

Most nix commands are failing on a fresh multi-user install of nix on MacOS 15.2 with the following error:

error:
       … while calling the 'import' builtin
         at «string»:1:18:
            1| {...}@args: with import <nixpkgs> args; (pkgs.runCommandCC or pkgs.runCommand) "shell" { buildInputs = [ (run) (hello) ]; } ""
             |                  ^

       … while realising the context of a path

       … while calling the 'findFile' builtin
         at «string»:1:25:
            1| {...}@args: with import <nixpkgs> args; (pkgs.runCommandCC or pkgs.runCommand) "shell" { buildInputs = [ (run) (hello) ]; } ""
             |                         ^

       error: path '/nix/var/nix/profiles/per-user/root/channels' is a symlink

Steps To Reproduce

  1. Have a MacOS 15.2 installation
  2. Use the Nix multi-user installer as described on the NixOS Download page.
  3. Installer finishes successfully
  4. Try to run the example from the installer (or really any other command): nix-shell -p nix-info --run "nix-info -m"
  5. Get the above error :)

Expected behavior

Don't get the above error :)

Metadata

nix-env (Nix) 2.26.0

Additional context

Checklist


Add 👍 to issues you find important.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions