$ curl https://nixos.org/nix/install | sh
$ sudo launchctl unload /Library/LaunchDaemons/org.nixos.nix-daemon.plist
$ sudo launchctl stop org.nixos.nix-daemon
Add the following line to ~/.profile
:
NIX_REMOTE=""
Comment out the following line in /etc/nix/nix.conf
:
build-users-group = nixbld
$ sudo dscl . -delete /Users/nixbld1
$ sudo dscl . -delete /Users/nixbld2
$ sudo dscl . -delete /Users/nixbld3
$ sudo dscl . -delete /Users/nixbld4
$ sudo dscl . -delete /Groups/nixbld
$ sudo -i nix-channel --remove nixpkgs
$ sudo chown -R ykomatsu:staff /nix
$ nix-channel --add https://nixos.org/channels/nixpkgs-unstable
$ nix-channel --update