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.3k stars 60 forks source link

Error installing v20.2 on macOS with M chip #1083

Open dsmith-digitalmint opened 3 months ago

dsmith-digitalmint commented 3 months ago

Error

Error: 
   0: Planner error
   1: Error executing action
   2: Action `create_nix_volume` errored
   3: Action `create_volume_service` errored
   4: `/Library/LaunchDaemons/org.nixos.darwin-store.plist` contents differs, planned `LaunchctlMountPlist { run_at_load: true, label: "org.nixos.darwin-store", program_arguments: ["/bin/sh", "-c", "/usr/bin/security find-generic-password -s \"Nix Store\" -w |  /usr/sbin/diskutil apfs unlockVolume \"Nix Store\" -mountpoint \"/nix\" -stdinpassphrase"] }`, discovered `LaunchctlMountPlist { run_at_load: true, label: "org.nixos.darwin-store", program_arguments: ["/bin/sh", "-c", "/usr/bin/security find-generic-password -s '0AB31688-2584-4E07-8AB4-4358BF9F51D9' -w | /usr/sbin/diskutil apfs unlockVolume '0AB31688-2584-4E07-8AB4-4358BF9F51D9' -mountpoint '/nix' -stdinpassphrase"] }`

Metadata

key value
version 0.20.2
os macos
arch aarch64
cole-h commented 3 months ago

It sounds like you already had Nix installed (and/or nix-darwin). If you remove that file, does the installation go further?

dsmith-digitalmint commented 3 months ago

I had to delete the volume using `sudo launchctl bootout system/org.nixos.nix-daemon && sudo diskutil apfs deleteVolume "Nix Store"

On Fri, Aug 9, 2024 at 9:20 AM Cole Helbling @.***> wrote:

It sounds like you already had Nix installed (and/or nix-darwin). If you remove that file, does the installation go further?

— Reply to this email directly, view it on GitHub https://github.com/DeterminateSystems/nix-installer/issues/1083#issuecomment-2278060825, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHP72N3LKEN4OHHLQTU52R3ZQTF4VAVCNFSM6AAAAABMHMQMHOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZYGA3DAOBSGU . You are receiving this because you authored the thread.Message ID: @.***>

-- Daniel Smith Technology Director DigitalMint Book some time on my calendar https://calendar.app.google/YDuxKx2gZTRzjoEQ9. System Status https://status.digitalmint.io/ Technical Support: 312-632-0934 (Option 4) Direct: 312-632-0934 (Option 5) File a bug report or feature request for the DigitalMint portal: here https://forms.gle/8WUnciS67zeLrCmYA Terms of Service & Privacy Policy https://www.digitalmint.io/terms-of-service/ 🇺🇦 Слава Україні!

koalazub commented 3 months ago

I was able to get this installed but also had to remove the volume via recovery mode and then run the installer. I'm wondering if you should prompt for a forceful removal of the Nix volume if there's a conflict/inability to install unless you have to reinstall the volume if you're unable to install normally?