-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
After upgrading from High Sierra to Mojave I had issues with nix (it's disappeared, but it's a separate topic) and I decided to reinstall it. I ran
sh <(curl https://nixos.org/nix/install) --daemon
it failed telling me that I already have nix and gave me instructions how to remove it:
sudo launchctl unload /Library/LaunchDaemons/org.nixos.nix-daemon.plist sudo rm /Library/LaunchDaemons/org.nixos.nix-daemon.plist sudo mv /etc/bashrc.backup-before-nix /etc/bashrc *reopen terminal sudo mv /etc/zshrc.backup-before-nix /etc/zshrc *reopen terminal sudo rm -rf /etc/nix /nix /var/root/.nix-profile /var/root/.nix-defexpr /var/root/.nix-channels /Users/$USER/.nix-profile /Users/$USER/.nix-defexpr /Users/$USER/.nix-channels
I followed them and ran installation again which failed less gracefully with the error below without any instructions what to do next:
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/bin/dscl . -create /Users/nixbld1 NFSHomeDirectory /var/empty
in order to give nixbld1 a safe home directory
<main> attribute status: eDSPermissionError
<dscl_cmd> DS Error: -14120 (eDSPermissionError)
After some research I found instructions here #1551 which also covers deleting nix users.
So I'm wondering if it's possible to make the installation script smart enough and take care of that issue or at least teach it to inform user how to delete these users manually.
Thanks