- was failing on
sudo chmod -R ugo-w "/nix/store/"(running this command manually it had an exit code of 1 but showed no errors...) - I manually edited the multi user install script to ignore failures from this line, and then of course had to fix a bunch of stuff from the first install attempt:
- roughly following the steps I found here: https://iohk.zendesk.com/hc/en-us/articles/4415830650265-Uninstall-nix-on-MacOS
- and then doing:
sudo rm /etc/*.backup-before-nix
sudo dscl . -rm /Groups/nixbld
for x in $(dscl . -list /Users|grep nix); do
sudo dscl . -rm /Users/$x
done
# ~/nix-temp/unpack being path I unpacked the installer to to be able to edit the multi user install script
~/nix-temp/unpack/nix-2.11.1-aarch64-darwin/install
- which seems to have worked fine
- running one of the commands above (unsure which exactly, but presumably one of the
dsclcommands) caused macos to prompt me to allow Terminal to administer this machine (which of course I allowed). I do wonder why I never got this prompt running nix install though... (surely when it was creating these users and such I should have seen a similar prompt?) - testing afterwards, the chmod still doesn't work, so this dscl isn't related (just slightly suspicious)
FIGURED IT OUT! Turns out they had coreutils installed (which overrides
chmod). idk why gnuchmodexits 1 without any errors... but hey, DON'T USE COREUTILS ON MACOS