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

Reinstalling nix fails on M2 MacOS #8996

Open
1 of 3 tasks
rgankema opened this issue Sep 19, 2023 · 2 comments
Open
1 of 3 tasks

Reinstalling nix fails on M2 MacOS #8996

rgankema opened this issue Sep 19, 2023 · 2 comments

Comments

@rgankema
Copy link

Platform

  • Linux:
  • macOS
  • WSL

Additional information

Every time that MacOS upgrades, /etc/zshrc seems to get overwritten, and so nix-shell doesn't work anymore. To counteract this, I've added source /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh at the end of my ~/.zshrc file. This has worked for at least 2 days, until I found out today that for some mysterious reason/nix just disappeared entirely.

Because it had disappeared, I wanted to reinstall again, but that didn't work.

Output

Output

sh <(curl -L https://nixos.org/nix/install) --daemon
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  4052  100  4052    0     0   9470      0 --:--:-- --:--:-- --:--:--  9470
downloading Nix 2.17.0 binary tarball for aarch64-darwin from 'https://releases.nixos.org/nix/nix-2.17.0/nix-2.17.0-aarch64-darwin.tar.xz' to '/var/folders/tl/gym6bqrx5hjclxgc_kvtgw2h0000gn/T/nix-binary-tarball-unpack.XXXXXXXXXX.yK08RoyZ'...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 10.6M  100 10.6M    0     0  28.5M      0 --:--:-- --:--:-- --:--:-- 28.7M
Switching to the Multi-user Installer
Welcome to the Multi-User Nix Installation

This installation tool will set up your computer with the Nix package
manager. This will happen in a few stages:

1. Make sure your computer doesn't already have Nix. If it does, I
   will show you instructions on how to clean up your old install.

2. Show you what I am going to install and where. Then I will ask
   if you are ready to continue.

3. Create the system users (uids [301..332]) and groups (gid 30000)
   that the Nix daemon uses to run builds.

4. Perform the basic installation of the Nix files daemon.

5. Configure your shell to import special Nix Profile files, so you
   can use Nix.

6. Start the Nix daemon.

Would you like to see a more detailed list of what I will do?
[y/n] n


---- let's talk about sudo -----------------------------------------------------
This script is going to call sudo a lot. Every time I do, it'll
output exactly what it'll do, and why.

Just like this:

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

    $ sudo echo

to demonstrate how our sudo prompts look


This might look scary, but everything can be undone by running just a
few commands. I used to ask you to confirm each time sudo ran, but it
was too many times. Instead, I'll just ask you this one time:

Can I use sudo?
[y/n] y

Yay! Thanks! Let's get going!

~~> Fixing any leftover Nix volume state
Before I try to install, I'll check for any existing Nix volume config
and ask for your permission to remove it (so that the installer can
start fresh). I'll also ask for permission to fix any issues I spot.

---- Found existing Nix volume -------------------------------------------------
  special:      disk3s7
     uuid:      44BBDAD9-D2B3-4032-86B5-DE460E6B5459
encrypted:      yes

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

    $ sudo security find-generic-password -s 44BBDAD9-D2B3-4032-86B5-DE460E6B5459 -w

to confirm keychain has a password that unlocks this volume


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

    $ sudo /usr/sbin/diskutil apfs unlockVolume disk3s7 -verify -stdinpassphrase -user 44BBDAD9-D2B3-4032-86B5-DE460E6B5459

to confirm the password actually unlocks the volume

Verifying the specific cryptographic user 44BBDAD9-D2B3-4032-86B5-DE460E6B5459 on APFS Volume disk3s7
Passphrase valid
Found a working decryption password in keychain :)


~~> Checking for artifacts of previous installs
Before I try to install, I'll check for signs Nix already is or has
been installed on this system.

---- Nix config report ---------------------------------------------------------
        Temp Dir:       /var/folders/tl/gym6bqrx5hjclxgc_kvtgw2h0000gn/T/tmp.eSrO8DNY
        Nix Root:       /nix
     Build Users:       32
  Build Group ID:       30000
Build Group Name:       nixbld

build users:
    Username:   UID
     _nixbld1:  301
     _nixbld2:  302
     _nixbld3:  303
     _nixbld4:  304
     _nixbld5:  305
     _nixbld6:  306
     _nixbld7:  307
     _nixbld8:  308
     _nixbld9:  309
     _nixbld10: 310
     _nixbld11: 311
     _nixbld12: 312
     _nixbld13: 313
     _nixbld14: 314
     _nixbld15: 315
     _nixbld16: 316
     _nixbld17: 317
     _nixbld18: 318
     _nixbld19: 319
     _nixbld20: 320
     _nixbld21: 321
     _nixbld22: 322
     _nixbld23: 323
     _nixbld24: 324
     _nixbld25: 325
     _nixbld26: 326
     _nixbld27: 327
     _nixbld28: 328
     _nixbld29: 329
     _nixbld30: 330
     _nixbld31: 331
     _nixbld32: 332

Ready to continue?
[y/n] y


---- Preparing a Nix volume ----------------------------------------------------
    Nix traditionally stores its data in the root directory /nix, but
    macOS now (starting in 10.15 Catalina) has a read-only root directory.
    To support Nix, I will create a volume and configure macOS to mount it
    at /nix.

~~> Configuring /etc/synthetic.conf to make a mount-point at /nix

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

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

to add Nix to /etc/synthetic.conf


~~> Creating a Nix volume

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

    $ sudo /usr/sbin/diskutil unmount force disk3s7

to ensure the Nix volume is not mounted

Volume Nix Store on disk3s7 force-unmounted

~~> Configuring /etc/fstab to specify volume mount options

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

    $ sudo /usr/sbin/vifs

to add nix to fstab


~~> Configuring LaunchDaemon to mount 'Nix Store'

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

    $ sudo /usr/bin/ex -u NONE -n /Library/LaunchDaemons/org.nixos.darwin-store.plist

to install the Nix volume mounter


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

    $ sudo launchctl bootstrap system /Library/LaunchDaemons/org.nixos.darwin-store.plist

to launch the Nix volume mounter


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

    $ sudo launchctl kickstart -k system/org.nixos.darwin-store

to launch the Nix volume mounter


~~> Setting up the build group nixbld
            Exists:     Yes

~~> Setting up the build user _nixbld1
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

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

    $ sudo /usr/bin/dscl . -create /Users/_nixbld1 RealName Nix build user 1

in order to give _nixbld1 a useful note

              Note:     Nix build user 1
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user _nixbld2
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

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

    $ sudo /usr/bin/dscl . -create /Users/_nixbld2 RealName Nix build user 2

in order to give _nixbld2 a useful note

              Note:     Nix build user 2
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user _nixbld3
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

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

    $ sudo /usr/bin/dscl . -create /Users/_nixbld3 RealName Nix build user 3

in order to give _nixbld3 a useful note

              Note:     Nix build user 3
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user _nixbld4
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

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

    $ sudo /usr/bin/dscl . -create /Users/_nixbld4 RealName Nix build user 4

in order to give _nixbld4 a useful note

              Note:     Nix build user 4
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user _nixbld5
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

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

    $ sudo /usr/bin/dscl . -create /Users/_nixbld5 RealName Nix build user 5

in order to give _nixbld5 a useful note

              Note:     Nix build user 5
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user _nixbld6
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

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

    $ sudo /usr/bin/dscl . -create /Users/_nixbld6 RealName Nix build user 6

in order to give _nixbld6 a useful note

              Note:     Nix build user 6
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user _nixbld7
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

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

    $ sudo /usr/bin/dscl . -create /Users/_nixbld7 RealName Nix build user 7

in order to give _nixbld7 a useful note

              Note:     Nix build user 7
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user _nixbld8
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

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

    $ sudo /usr/bin/dscl . -create /Users/_nixbld8 RealName Nix build user 8

in order to give _nixbld8 a useful note

              Note:     Nix build user 8
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user _nixbld9
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

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

    $ sudo /usr/bin/dscl . -create /Users/_nixbld9 RealName Nix build user 9

in order to give _nixbld9 a useful note

              Note:     Nix build user 9
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user _nixbld10
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

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

    $ sudo /usr/bin/dscl . -create /Users/_nixbld10 RealName Nix build user 10

in order to give _nixbld10 a useful note

              Note:     Nix build user 10
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user _nixbld11
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

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

    $ sudo /usr/bin/dscl . -create /Users/_nixbld11 RealName Nix build user 11

in order to give _nixbld11 a useful note

              Note:     Nix build user 11
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user _nixbld12
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

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

    $ sudo /usr/bin/dscl . -create /Users/_nixbld12 RealName Nix build user 12

in order to give _nixbld12 a useful note

              Note:     Nix build user 12
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user _nixbld13
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

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

    $ sudo /usr/bin/dscl . -create /Users/_nixbld13 RealName Nix build user 13

in order to give _nixbld13 a useful note

              Note:     Nix build user 13
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user _nixbld14
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

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

    $ sudo /usr/bin/dscl . -create /Users/_nixbld14 RealName Nix build user 14

in order to give _nixbld14 a useful note

              Note:     Nix build user 14
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user _nixbld15
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

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

    $ sudo /usr/bin/dscl . -create /Users/_nixbld15 RealName Nix build user 15

in order to give _nixbld15 a useful note

              Note:     Nix build user 15
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user _nixbld16
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

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

    $ sudo /usr/bin/dscl . -create /Users/_nixbld16 RealName Nix build user 16

in order to give _nixbld16 a useful note

              Note:     Nix build user 16
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user _nixbld17
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

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

    $ sudo /usr/bin/dscl . -create /Users/_nixbld17 RealName Nix build user 17

in order to give _nixbld17 a useful note

              Note:     Nix build user 17
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user _nixbld18
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

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

    $ sudo /usr/bin/dscl . -create /Users/_nixbld18 RealName Nix build user 18

in order to give _nixbld18 a useful note

              Note:     Nix build user 18
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user _nixbld19
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

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

    $ sudo /usr/bin/dscl . -create /Users/_nixbld19 RealName Nix build user 19

in order to give _nixbld19 a useful note

              Note:     Nix build user 19
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user _nixbld20
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

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

    $ sudo /usr/bin/dscl . -create /Users/_nixbld20 RealName Nix build user 20

in order to give _nixbld20 a useful note

              Note:     Nix build user 20
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user _nixbld21
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

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

    $ sudo /usr/bin/dscl . -create /Users/_nixbld21 RealName Nix build user 21

in order to give _nixbld21 a useful note

              Note:     Nix build user 21
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user _nixbld22
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

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

    $ sudo /usr/bin/dscl . -create /Users/_nixbld22 RealName Nix build user 22

in order to give _nixbld22 a useful note

              Note:     Nix build user 22
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user _nixbld23
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

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

    $ sudo /usr/bin/dscl . -create /Users/_nixbld23 RealName Nix build user 23

in order to give _nixbld23 a useful note

              Note:     Nix build user 23
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user _nixbld24
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

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

    $ sudo /usr/bin/dscl . -create /Users/_nixbld24 RealName Nix build user 24

in order to give _nixbld24 a useful note

              Note:     Nix build user 24
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user _nixbld25
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

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

    $ sudo /usr/bin/dscl . -create /Users/_nixbld25 RealName Nix build user 25

in order to give _nixbld25 a useful note

              Note:     Nix build user 25
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user _nixbld26
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

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

    $ sudo /usr/bin/dscl . -create /Users/_nixbld26 RealName Nix build user 26

in order to give _nixbld26 a useful note

              Note:     Nix build user 26
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user _nixbld27
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

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

    $ sudo /usr/bin/dscl . -create /Users/_nixbld27 RealName Nix build user 27

in order to give _nixbld27 a useful note

              Note:     Nix build user 27
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user _nixbld28
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

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

    $ sudo /usr/bin/dscl . -create /Users/_nixbld28 RealName Nix build user 28

in order to give _nixbld28 a useful note

              Note:     Nix build user 28
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user _nixbld29
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

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

    $ sudo /usr/bin/dscl . -create /Users/_nixbld29 RealName Nix build user 29

in order to give _nixbld29 a useful note

              Note:     Nix build user 29
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user _nixbld30
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

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

    $ sudo /usr/bin/dscl . -create /Users/_nixbld30 RealName Nix build user 30

in order to give _nixbld30 a useful note

              Note:     Nix build user 30
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user _nixbld31
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

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

    $ sudo /usr/bin/dscl . -create /Users/_nixbld31 RealName Nix build user 31

in order to give _nixbld31 a useful note

              Note:     Nix build user 31
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user _nixbld32
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

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

    $ sudo /usr/bin/dscl . -create /Users/_nixbld32 RealName Nix build user 32

in order to give _nixbld32 a useful note

              Note:     Nix build user 32
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the basic directory structure

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

    $ sudo /usr/sbin/chown -R root:nixbld /nix

to take root ownership of existing Nix store files

chown: /nix/.Spotlight-V100: Operation not permitted
chown: /nix/.Spotlight-V100: Operation not permitted
chown: /nix/.Trashes: Operation not permitted
chown: /nix/.Trashes: Operation not permitted

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

    $ sudo install -dv -m 0755 /nix /nix/var /nix/var/log /nix/var/log/nix /nix/var/log/nix/drvs /nix/var/nix /nix/var/nix/db /nix/var/nix/gcroots /nix/var/nix/profiles /nix/var/nix/temproots /nix/var/nix/userpool /nix/var/nix/daemon-socket /nix/var/nix/gcroots/per-user /nix/var/nix/profiles/per-user

to make the basic directory structure of Nix (part 1)


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

    $ sudo install -dv -g nixbld -m 1775 /nix/store

to make the basic directory structure of Nix (part 2)


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

    $ sudo install -dv -m 0555 /etc/nix

to place the default nix daemon configuration (part 1)


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

    $ sudo install -m 0664 /var/folders/tl/gym6bqrx5hjclxgc_kvtgw2h0000gn/T/tmp.eSrO8DNY/.nix-channels /var/root/.nix-channels

to set up the default system channel (part 1)


~~> Installing Nix

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

    $ sudo cp -RPp ./store/02niv53a61q18lf5kwjrw2xi0v5h6wd8-aws-crt-cpp-0.18.9 ./store/08pckaqznwh0s3822cjp5aji6y1lsm27-libcxx-11.1.0 ./store/0b3z7f5vb1xzym2rpr1wsihfv21v9zf6-libcxxabi-11.1.0 ./store/1qg9viaprxsgw3pxpgnv2n01f434fs9p-editline-1.17.1 ./store/49wn01k9yikhjlxc1ym5b6civ29zz3gv-bash-5.1-p16 ./store/4ik9hmrxsnnaz982jnvq6mnrzs4ddkny-apple-lib-libDER ./store/55arayxr3mw0cbkhrj6gmzd0dby49312-boehm-gc-8.2.2 ./store/5936j3nfy10fdpr1j4549x6lb50ifi5l-libunistring-1.0 ./store/5sl7xdsjlw687wj5k58db9zjz32y731b-aws-c-compression-0.2.16 ./store/6p326iq0dmi5s7i8ps5aigbxklwd9n54-aws-sdk-cpp-1.9.294 ./store/8h9pxgq1776ns6qi5arx08ifgnhmgl22-nlohmann_json-3.11.2 ./store/8m6z0nnvg98zv7vb37j9lpj8rxpnfhx2-apple-framework-CoreFoundation-11.0.0 ./store/9kqs4rkd14g5y0paq9l0p9k318vqcjxx-libarchive-3.6.1-lib ./store/9nv47ym436d2dn9ryi3wb582x6gc9ib2-libobjc-11.0.0 ./store/9yqd8rny3wslz0glg01slb6li72m1iyw-aws-c-s3-0.1.51 ./store/b47gmsx9qx0c9vh75wsg8bqq9qd0ad6f-openssl-3.0.7 ./store/b4vsqd30y8a8rvz7l3is0km3z0fng9is-libidn2-2.3.2 ./store/bhd870xd7xbk2m1y1apb3y3m4x4avlps-bzip2-1.0.8 ./store/cf4c5k385r0grcpb2j9z8jsx0qh0g8v3-libiconv-50 ./store/d0qb7c01wvcdj4iilggmv5vhik3ilsrz-zstd-1.5.2 ./store/f93152m8qjjp84ijf9rx39g7r0rz4s7a-xz-5.2.7 ./store/fjfshgz8924rjm5swvy4cdpvjpgycjb4-aws-c-mqtt-0.7.13 ./store/gbgryjc27mgd404q49ccjp6g5kf18c3v-libsodium-1.0.18 ./store/h8zwil8f9kab1v7g8cpq574q3v821mhk-aws-c-io-0.13.11 ./store/hrxkzy63vqsrvykmf0g4pgb5zwr0iy04-libssh2-1.10.0 ./store/j5304a61c6nwgkz6h5cyjgwcibmm5lz5-aws-c-http-0.6.27 ./store/j5inygb3gs82sfsjvgv0b69sbw7d7lx5-aws-c-sdkutils-0.1.7 ./store/j5v1y8p62l5sjhkl4vhcagb0is5cz5ry-aws-c-common-0.8.5 ./store/jkniffn4i1blrwcx7hfsv65fa4ndbn8d-apple-framework-IOKit-11.0.0 ./store/jl9qma14fb4zk9lq1k0syw2k9qm2gqjw-nix-2.17.0 ./store/m2r15dkg1dx5sfs48b9gvq8alybms6cl-aws-checksums-0.1.13 ./store/pcsrz9lxydw7qn1yjskp2wl7gr0rk9sx-sqlite-3.39.4 ./store/pl497357lkfpvdr8v4pfan16k7jna2l2-nss-cacert-3.83 ./store/qs57g8czsih12id4iqvz95727dqw5cqa-aws-c-auth-0.6.21 ./store/rdpfnijg901q6s036v00s0k4zawaq7xl-nghttp2-1.49.0-lib ./store/w4g2mhzv8cniz96d5mna8l8yrxxizf9y-curl-7.86.0 ./store/w6d8ck29mgmvndzv8z94rrp6yc64dlc3-apple-framework-Security-11.0.0 ./store/wc2jmxvr15yzffy2cpqg92i34nbzwlfm-libxml2-2.10.3 ./store/wk8n7j6394m4ymggdrfyfywr60jwps0h-brotli-1.0.9-lib ./store/wpmckj1air9j5j5ji1hrqpa5s4q7n92q-aws-c-event-stream-0.2.15 ./store/x4kr506n69i577ga6bij28yzxrhgarmj-aws-c-cal-0.5.20 ./store/x64yk4vfv63g25k8xza9m6g0l04jswmy-libkrb5-1.20 ./store/zqcs5xahjxij0c8vfw60lnfb6d979rn2-zlib-1.2.13 /nix/store/

to copy the basic Nix files to the new store at /nix/store


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

    $ sudo chmod -R ugo-w /nix/store/

to make the new store non-writable at /nix/store

      Alright! We have our first nix at /nix/store/jl9qma14fb4zk9lq1k0syw2k9qm2gqjw-nix-2.17.0

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

    $ sudo HOME=/var/root /nix/store/jl9qma14fb4zk9lq1k0syw2k9qm2gqjw-nix-2.17.0/bin/nix-store --load-db

to load data for the first time in to the Nix Database

/var/folders/tl/gym6bqrx5hjclxgc_kvtgw2h0000gn/T/nix-binary-tarball-unpack.XXXXXXXXXX.yK08RoyZ/unpack/nix-2.17.0-aarch64-darwin/create-darwin-volume.sh: line 354: 10325 Killed: 9               sudo "$@"

---- oh no! --------------------------------------------------------------------
Oh no, something went wrong. If you can take all the output and open
an issue, we'd love to fix the problem so nobody else has this issue.

:(

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 👍 to issues you find important.

@abathur
Copy link
Member

abathur commented Sep 19, 2023

The error reported sounds like the issue described in:

I'd try following the uninstall instructions: https://nixos.org/manual/nix/stable/installation/uninstall.html#macos

And then look into the workaround mentioned in this comment:
#5498 (comment)

FWIW:

@montchr
Copy link
Member

montchr commented Oct 30, 2023

@rgankema I'm curious whether your /nix ever re-appeared?

In my experience, macOS' handling of the Nix store has been flaky sometimes. Grasping at straws: /nix disappearing reminded me of the behavior referenced in passing in LnL7/nix-darwin#774 – there seems to be some kind of delay in making the partition available, as if it only came into existence after a failing request… or something…

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

No branches or pull requests

3 participants