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

Nix Installer tries to install to 301 on MacOS Sequoia but fails due to user being there #11068

Closed
1 task done
Eveeifyeve opened this issue Jul 9, 2024 · 1 comment
Closed
1 task done

Comments

@Eveeifyeve
Copy link

Eveeifyeve commented Jul 9, 2024

Platform

  • macOS Sequoia beta 2

Additional information

Nix tries to install a user on 301 but is taken by _modelmanagerd 301 which might mean apple intelligence is taking user space I had to specify what user id I want nix to install which 400 which works.

Output

I am executing:

    $ sudo /usr/bin/dscl . create /Users/_nixbld1 UniqueID 301

Creating the Nix build user (#1), _nixbld1

<main> attribute status: eDSRecordAlreadyExists
<dscl_cmd> DS Error: -14135 (eDSRecordAlreadyExists)

To get around it

add NIX_FIRST_BUILD_UUID=400 to temporarily fix the issue.
and when uninstalling follow the guide to uninstall the users to fix the _nixbuild1 is a user: https://nix.dev/manual/nix/2.22/installation/uninstall

The solution

So I would say adjust the user id to something like 400-450 or do what @tomberek is implement the automatic uuid assignment for MacOS.

Priorities

#2242
#6153
#10892
https://mastodon.social/@ryanbooker/112597391954278800

Tags

@tomberek

@abathur
Copy link
Member

abathur commented Jul 9, 2024

This is already being tracked in the pinned issue you linked:

There's also a draft fix open in:

@abathur abathur closed this as not planned Won't fix, can't repro, duplicate, stale Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants