NixOS / nix

Nix, the purely functional package manager
https://nixos.org/
GNU Lesser General Public License v2.1
11.59k stars 1.45k forks source link

MacOS catalina failing initial installation of Nix script #10681

Open wesbragagt opened 2 months ago

wesbragagt commented 2 months ago

Platform

Additional information

I executed

  1. sh <(curl -L https://nixos.org/nix/install)
  2. Confirmed Y for all the prompts

Output

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo /usr/bin/ex -u NONE -n /etc/synthetic.conf

to add Nix to /etc/synthetic.conf

---- oh no! --------------------------------------------------------------------
error: failed to configure synthetic.conf

We'd love to help if you need it.

You can open an issue at
https://github.com/NixOS/nix/issues/new?labels=installer&template=installer.md

Or get in touch with the community: https://nixos.org/community

Priorities

Add :+1: to issues you find important.

abathur commented 2 months ago

I don't think we've had a report like this in a while, but this sounds a bit like an issue that can pop up if something in your vimrc/plugins causes vim to exit with an error.

Can you try running:

/usr/bin/ex -u NONE -n boofar <<EOF
:a
nix
.
:x
EOF
echo $?
/bin/rm boofar

(This will just try to create a file like the installer does, check the status, and then remove the file.)