Last active
April 9, 2025 10:11
-
-
Save a-nldisr/d16fff5ef6dbf535e01b651e19a182da to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Issue: This occurs when updating OSX. | |
# It seems the build group nixbld already exists, but | |
# with the UID 30000. This script can't really handle | |
# that right now, so I'm going to give up. | |
# You can export NIX_BUILD_GROUP_ID=30000 and re-run. | |
# However setting this will not fix this error. Remove the users and groups | |
set -euo pipefail | |
for i in {1..32}; do | |
echo "Removing nixbld$i" | |
sudo dscl . delete /Users/_nixbld$i | |
done | |
sudo dscl . delete /Groups/nixbld |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment