DeterminateSystems / nix-installer

Install Nix and flakes with the fast and reliable Determinate Nix Installer, with over 7 million installs.
https://determinate.systems
GNU Lesser General Public License v2.1
2.22k stars 57 forks source link

Uninstalling Error. #929

Open lucianthorr opened 6 months ago

lucianthorr commented 6 months ago

Error

Error: 
   0: Error reverting
   0: Action `create_or_merge_nix_config` errored
      Remove file `/etc/nix/nix.conf`

Metadata

key value
version 0.17.1
os macos
arch aarch64

The full output was

Proceed? ([Y]es/[n]o/[e]xplain): Y
 INFO Revert: Remove directory `/nix/temp-install-dir`
 INFO Revert: Configure Nix daemon related settings with launchctl
 INFO Revert: Create a `launchctl` plist to put Nix into your PATH
 INFO Revert: Configuring zsh to support using Nix in non-interactive shells
 INFO Revert: Configure Nix
 INFO Revert: Configure Time Machine exclusions
 INFO Revert: Create build users (UID 301-332) and group (GID 30000)
 INFO Revert: Provision Nix
 INFO Revert: Create an encrypted APFS volume `Nix Store` for Nix on `disk3` and add it to `/etc/fstab` mounting on `/nix`
ERROR Uninstallation complete, some errors encountered
Error:
   0: Error reverting
   0: Action `create_or_merge_nix_config` errored
      Remove file `/etc/nix/nix.conf`
   0:

Location:
   src/cli/subcommand/uninstall.rs:192

I did have a nix.conf setup in my ~/.config/nix/ folder, if that matters.

lucianthorr commented 6 months ago

Figured it out. I had installed and uninstalled nix-darwin and it did not clean itself up. There was a /etc/nix/nix.conf.before-nix-darwin

If possible, could you tell me what steps may have been missed? I see I still have a /nix folder also.

hybras commented 6 months ago

Check /nix/receipt.json