-
-
Notifications
You must be signed in to change notification settings - Fork 457
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 Sequoia replaces _nixbld{1,2,3,4}
with system users causing darwin-rebuild
to fail
#970
Comments
When running
Disabling the following resolved the issue: nix.configureBuildUsers = true; |
I think you should also be able to override We should wait to see what the official installer and Determinate Systems settle on before changing the IDs ourselves, I think. Might be a bit messy in terms of migration. I’ll pin this for now to make the workarounds more discoverable. |
For future reference, here's what I did:
nix.configureBuildUsers = true;
ids.uids.nixbld = lib.mkForce 30000; # or some other uid
DO NOT SKIP TO STEP 4 or you might end up with a system without any build user darwin-rebuild switch --flake .#macbook --show-trace --option build-users-group ''
# start end
# v v
for i in {5..32}; do sudo dscl . -delete /Users/_nixbld$i; done
|
You definitely want to use UIDs in the system range (200 to 400, I believe), as using high user IDs caused other problems in the past (though I don’t remember exactly what). Hopefully we can work out a clean migration solution once this shakes out upstream. |
For reference I did bit of googling lead me to this Super User Question Question includes two relevant things
and There is an Apple supplied tool /usr/sbin/sysadminctl Running with no parameters gives its options and some comments at the end.
|
@stepbrobd suggestion did not work for me, I still got So I just filled in the blanks:
|
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
@RekiDunois try the script that @tomberek mentioned, it worked like a charm. |
darwin-rebuild
errors out after upgrading from macOS Sonoma to macOS Sequoia with the following error:Probably caused by the same reason as DeterminateSystems/nix-installer#1001: Apple created couple users with uid ranging from 301~304, replacing
_nixbld{1,2,3,4}
A temprory fix I found is executing all
darwin-*
commands with--option build-users-group ''
Users with uid starting from 300 (
dscacheutil -q group
could also be useful):The text was updated successfully, but these errors were encountered: