nix-installer icon indicating copy to clipboard operation
nix-installer copied to clipboard

Installer explodes with existing Nix store

Open jcf opened this issue 1 year ago • 3 comments
trafficstars

I am reporting this because the installer suggested I do so. Please feel free to close without fixing.

Error

curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
Error: 
   0: Planner error
   1: Error executing action
   2: Action `encrypt_apfs_volume` errored
   3: The keychain lacks a password for the already existing "Nix Store" volume on disk `disk3`, consider removing the volume with `diskutil apfs deleteVolume "Nix Store"` (if you receive error -69888, you may need to run `sudo launchctl bootout system/org.nixos.darwin-store` and `sudo launchctl bootout system/org.nixos.nix-daemon` first)

Metadata

key value
version 0.15.1
os macos
arch aarch64

Desired outcome

An upgrade from the existing Nix installation to the Determinate version.

jcf avatar Dec 02 '23 18:12 jcf

Was the problem resolved by following the suggestion of the error message?

Hoverbear avatar Dec 05 '23 19:12 Hoverbear

I didn’t want to delete my existing Nix Store and rebuild everything. I have several gigabytes of reachable data in there.

jcf avatar Dec 10 '23 20:12 jcf

Presumably related: #673

I'm seeing the same thing; I just updated to Sonoma, and was hoping to migrate to the DetSys Nix installer having originally used the official installer (whose changes to e.g. /etc/zshrc have been overwritten by the Sonoma update).

I can try following the suggested steps, though the message is not particularly clear about what the implications of doing that will be. I currently seem to have a functional Nix installation despite the update to Sonoma and would like to avoid breaking it if possible.

keysmashes avatar Dec 20 '23 09:12 keysmashes