Skip to content

Unable to run initial darwin-rebuild (/private/tmp/.../virtualbox/update.sh: Operation not permitted) #1777

Open

Description

@aindurti-samsung

Trying to do the initial setup. I've passed in my cert file and disabled the sandbox

sudo --preserve-env=NIX_SSL_CERT_FILE nix run nix-darwin/nix-darwin-25.11#darwin-rebuild -- --option sandbox false switch 

but I still see

error: opening file '/private/tmp/nix-3y2a5pjm80rljx4yz2ba2i4g9h/nixpkgs-f58ee5f04eb76292db7ad4b36bd5e30bc8a702c9/pkgs/applications/virtualization/virtualbox/update.sh': Operation not permitted

Should I be changing permissions on /private/tmp? I haven't seen anyone else come across this particular error.

Activity

  1. aindurti-samsung commented on May 20, 2026

    @aindurti-samsung
    Author

    Note: I've also just retried with the following overlay in flake.nix and it still doesn't work

    nixpkgs.overlays = [
      (final: prev: {
        virtualbox = prev.virtualbox.overrideAttrs (old: {
          passthru.updateScript = null; 
        });
      })
    ];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions