Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uninstalling Error. #929

Open
lucianthorr opened this issue Apr 14, 2024 · 2 comments
Open

Uninstalling Error. #929

lucianthorr opened this issue Apr 14, 2024 · 2 comments

Comments

@lucianthorr
Copy link

lucianthorr commented Apr 14, 2024

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
Copy link
Author

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
Copy link

hybras commented Apr 15, 2024

Check /nix/receipt.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants