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

Nix install fails after migration assistant #10576

Open
1 of 3 tasks
spease opened this issue Apr 21, 2024 · 2 comments
Open
1 of 3 tasks

Nix install fails after migration assistant #10576

spease opened this issue Apr 21, 2024 · 2 comments

Comments

@spease
Copy link

spease commented Apr 21, 2024

This is my second attempt which ended the same way as the first. After the first attempt, I had to manually mv a bunch of before-nix backup files.

Platform

  • Linux:
  • macOS
  • WSL

Additional information

Used migration assistant

Output

Output

During install, I add 'nix' to /etc/synthetic.conf, which instructs
macOS to create an empty root directory for mounting the Nix volume.

Nix isn't the only thing in /var/folders/zq/nvfqy0j90mz_kgc2gs2cf95c0000gn/T/tmp.NNyuwjcWzY/synthetic.conf.edit,
but I think I know how to edit it out.
Here's the diff:
nix
run	private/var/run
Does the change above look right?
[y/n] y


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

    $ sudo cp /etc/synthetic.conf /var/folders/zq/nvfqy0j90mz_kgc2gs2cf95c0000gn/T/tmp.NNyuwjcWzY/synthetic.conf.edit

remove nix from /var/folders/zq/nvfqy0j90mz_kgc2gs2cf95c0000gn/T/tmp.NNyuwjcWzY/synthetic.conf.edit


~~> 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/zq/nvfqy0j90mz_kgc2gs2cf95c0000gn/T/tmp.NNyuwjcWzY
        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.

~~> 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/.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/zq/nvfqy0j90mz_kgc2gs2cf95c0000gn/T/tmp.NNyuwjcWzY/.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/1bhbzclv92nxpqbgyljxvd9qxbqdqa41-bzip2-1.0.8 ./store/1in7k3ik6wfk5fam2y51gyvjsgr9p228-libkrb5-1.20.2 ./store/1ssqw7nl19k9y1d8w4w9am949c6jbr0w-libiconv-50 ./store/30dy41wli6mh1zpnpqd4i7nh6k0wf55r-lowdown-1.0.2-lib ./store/340al4xjs0w53xrd482mx7q6rdaj5vba-aws-c-event-stream-0.3.1 ./store/441v23f9hhmc1yp5sa87vcp8ga98smw7-aws-c-common-0.8.23 ./store/4hcx82lf4agl7277y5993w23v1rjdkhs-apple-framework-IOKit-11.0.0 ./store/4ik0mpvsrzl8jp4wvvdn56j401p65acq-aws-c-compression-0.2.17 ./store/56ximv6qkx3br9p338b01kjiphxk6gmy-zstd-1.5.5 ./store/5milnwchna8xhsq4x20bc11k036y8fi5-libcxxabi-16.0.6 ./store/6bgn6njf4xlgg8fi0l7gjrl7a95zpd88-aws-c-sdkutils-0.1.12 ./store/76ld4awddvl4i0xnqj7dlbgdzv4b1kmh-aws-c-cal-0.6.0 ./store/76r3n41x39mg5wb7qhkjsqc8njqg83i0-boehm-gc-8.2.2 ./store/7n5g124g4fhfvqhsxswvkh76004yw40y-zlib-1.3 ./store/8rnpp5rydnbg91k9fjbw28sqj291k22d-xz-5.4.4 ./store/aa7awpqdaxswfiskprr81cnr84pqdgg0-apple-lib-libDER ./store/al8pd25hsjc7cw8wibq97p7f9wlz7x0a-http-parser-2.9.4 ./store/b1jbvyajhm4y2ll8rlb1xkdvflvx4cx0-apple-framework-CoreFoundation-11.0.0 ./store/bfpa8w90l62rvnbj5r2isdiwpcbcin4k-apple-framework-Security-11.0.0 ./store/bz04g5xypiqjpjmqarbpgjdrfzihdjr4-aws-c-s3-0.3.13 ./store/cymbrwncznk7cviw0f7yzajmafsafd9d-aws-c-auth-0.7.0 ./store/cz39g6l1j6c9qgqpznr3368b35bga1m1-aws-c-io-0.13.29 ./store/f723dppr7vgl3s5l0l151pfyjbk4wnc6-curl-8.4.0 ./store/fndgj98mhilic3j2cm8dxxp1kmp3ld1v-libarchive-3.7.2-lib ./store/girarnv997yjwgqf763kgk0cj8qb9m50-nlohmann_json-3.11.2 ./store/gydxywvcc3x8ha2dk3sc90yjdi3vpjzq-libobjc-11.0.0 ./store/hwph31awv9zhxybpqqw3lwbaa287msqp-libunistring-1.1 ./store/i8q1rm2132pzf9b5npghvp2m7msx2x5k-openssl-3.0.13 ./store/iaxdb25xd7vpkckk6fr81dwi6fbhv1hp-editline-1.17.1 ./store/ip0chiw6dkpz161mkkjvdsp8gb16wmf4-nix-2.21.1 ./store/isi9ky7nnry4wxrnihijs57lmz26p32f-libidn2-2.3.4 ./store/isyp8y9y7kknpcis0s7gaccwcb8bd1kq-libxml2-2.11.7 ./store/j8v9k1wlp6pmxq8mrydmsm7qrriz3qr4-libssh2-1.11.0 ./store/k0rxmd67fdajxam4qxgvc4krhncazs3j-bash-5.2-p15 ./store/kmkww0y7d2ihn12pvizhq6if45f9swzq-libsodium-1.0.18 ./store/kzj9sxvmxvbvkwgwh9a9k9vm0rj4i78z-nghttp2-1.57.0-lib ./store/m7iq37zysyrfmvy51l916gi2sx20ishi-brotli-1.1.0-lib ./store/m9vf50zyrj1hnq0kwxqr50srw25wkw30-libgit2-20231018162940 ./store/n3bmmr6khxp1gmzrwvklk1v16lal61b0-aws-c-mqtt-0.8.14 ./store/pfcyarcc5cs9r7j18zzg8y0qbgdd6s8v-aws-c-http-0.7.11 ./store/wn3jks164yzyrm4lij59c4ly0v8pic9g-aws-sdk-cpp-1.11.118 ./store/wvsqc4qc3kcmm1vsavrkbwjky1l187xs-aws-crt-cpp-0.20.3 ./store/xvfz4g7y1y2k777d9y20b18l0i1kjvzb-aws-checksums-0.1.17 ./store/z412hc5szk4willkhs63sh4nqv5xmwkp-sqlite-3.43.2 ./store/zlxqhs2v4idh8w7lhx9yl1bk09j8hjxg-nss-cacert-3.95 ./store/zm8klbs12fv0032zpi8sbf0swhvncy83-libcxx-16.0.6 /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/ip0chiw6dkpz161mkkjvdsp8gb16wmf4-nix-2.21.1

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

    $ sudo HOME=/var/root /nix/store/ip0chiw6dkpz161mkkjvdsp8gb16wmf4-nix-2.21.1/bin/nix-store --load-db

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

      Just finished getting the nix database ready.

~~> Setting up shell profiles: /etc/bashrc /etc/profile.d/nix.sh /etc/zshrc /etc/bash.bashrc /etc/zsh/zshrc

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

    $ sudo cp /etc/bashrc /etc/bashrc.backup-before-nix

to back up your current /etc/bashrc to /etc/bashrc.backup-before-nix


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

    $ sudo tee -a /etc/bashrc

extend your /etc/bashrc with nix-daemon settings


# Nix
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
  . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
fi
# End Nix


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

    $ sudo cp /etc/zshrc /etc/zshrc.backup-before-nix

to back up your current /etc/zshrc to /etc/zshrc.backup-before-nix


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

    $ sudo tee -a /etc/zshrc

extend your /etc/zshrc with nix-daemon settings


# Nix
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
  . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
fi
# End Nix


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

    $ sudo cp /etc/bash.bashrc /etc/bash.bashrc.backup-before-nix

to back up your current /etc/bash.bashrc to /etc/bash.bashrc.backup-before-nix


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

    $ sudo tee -a /etc/bash.bashrc

extend your /etc/bash.bashrc with nix-daemon settings


# Nix
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
  . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
fi
# End Nix


~~> Setting up shell profiles for Fish with conf.d/nix.fish inside /etc/fish /usr/local/etc/fish /opt/homebrew/etc/fish /opt/local/etc/fish

~~> Setting up the default profile

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

    $ sudo HOME=/var/root /nix/store/ip0chiw6dkpz161mkkjvdsp8gb16wmf4-nix-2.21.1/bin/nix-env -i /nix/store/ip0chiw6dkpz161mkkjvdsp8gb16wmf4-nix-2.21.1

to install a bootstrapping Nix in to the default profile

replacing old 'nix-2.21.1'
installing 'nix-2.21.1'
building '/nix/store/4sh8y9ri1r8n189z13w6v3vi708q5vrw-user-environment.drv'...

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

    $ sudo HOME=/var/root /nix/store/ip0chiw6dkpz161mkkjvdsp8gb16wmf4-nix-2.21.1/bin/nix-env -i /nix/store/zlxqhs2v4idh8w7lhx9yl1bk09j8hjxg-nss-cacert-3.95

to install a bootstrapping SSL certificate just for Nix in to the default profile

replacing old 'nss-cacert-3.95'
installing 'nss-cacert-3.95'

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

    $ sudo HOME=/var/root NIX_SSL_CERT_FILE=/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt /nix/store/ip0chiw6dkpz161mkkjvdsp8gb16wmf4-nix-2.21.1/bin/nix-channel --update nixpkgs

to update the default channel in the default profile

unpacking 1 channels...

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

    $ sudo install -m 0664 /var/folders/zq/nvfqy0j90mz_kgc2gs2cf95c0000gn/T/tmp.NNyuwjcWzY/nix.conf /etc/nix/nix.conf

to place the default nix daemon configuration (part 2)

install: /etc/nix/nix.conf: No such file or directory

---- 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 Apr 21, 2024

I'd see if following the uninstall instructions before reinstalling it gets this sorted: https://nixos.org/manual/nix/stable/installation/uninstall.html#macos

There is a known issue with migration assistant breaking the user/group associations.

@spease
Copy link
Author

spease commented Apr 25, 2024

That helped and I was able to install base nix, however I ran into a CA cert error trying to reinstall nix-darwin.

I found this and it seemed to fix it:
https://discourse.nixos.org/t/ssl-ca-cert-error-on-macos/31171/5

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

2 participants