Just did a fresh install and followed the terminal instructions:
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo launchctl kickstart -k system/org.nixos.nix-daemon
to start the nix-daemon
Alright! We're done!
Try it! Open a new terminal, and type:
$ nix-shell -p nix-info --run "nix-info -m"
I executed the command in a new terminal and received this error:
error:
… while calling the 'import' builtin
at «string»:1:18:
1| {...}@args: with import <nixpkgs> args; (pkgs.runCommandCC or pkgs.runCommand) "shell" { buildInputs = [ (nix-info) ]; } ""
| ^
… while realising the context of a path
… while calling the 'findFile' builtin
at «string»:1:25:
1| {...}@args: with import <nixpkgs> args; (pkgs.runCommandCC or pkgs.runCommand) "shell" { buildInputs = [ (nix-info) ]; } ""
| ^
error: path '/nix/var/nix/profiles/per-user/root/channels' is a symlink
what should I do to get Nix working in my Mac mini, macOS Sonoma 14.2?
I edited the fstab file with sublimetext, I didn’t read the instructions completely. Did I screw something up? Hopefully not, but I really dislike the fact that Nix can get deep into the system and potentially risk some damage in files where it doesn’t need to be.
Edit fstab using sudo vifs to remove the line mounting the Nix Store volume on /nix, which looks like
UUID=<uuid> /nix apfs rw,noauto,nobrowse,suid,owners
or
LABEL=Nix\040Store /nix apfs rw,nobrowse
by setting the cursor on the respective line using the error keys, and pressing dd, and then :wq to save the file.
This will prevent automatic mounting of the Nix Store volume.
I can’t give you a yes or no (beyond saying that the os docs are clear about using vifs for this).
If there’s nothing else in fstab, you can be sure the format is safe by removing the file entirely.
I don’t think anyone likes it, but there’s not really much choice here unless you’re willing to use a custom store location and forgo the benefits of using the public cache. The read-only root in macOS ties our hands here (unless the community decides to go through the pain of relocating the store location globally).
Confirming that the reinstall did work, it was taken from Download | Nix & NixOS version 2.25.4 as stated on the webpage, but reported 2.26.1 in the logs:
@Mini ~ % nix-shell -p nix-info --run "nix-info -m"
these 65 paths will be fetched (151.37 MiB download, 1143.43 MiB unpacked):
/nix/store/7y3fffj5ph3285p0cb0x9jhqz3agdybm-DarwinTools-1
/nix/store/6py65dicilvc6qxfra4mzw0xpxw2vc06-apple-sdk-11.3
/nix/store/iv1k5wr7hbxm51qmdn6l2inq7rd2vfhk-bash-5.2p37
/nix/store/i9ckv9hbpq23cqgzs64g4gankb950w9p-bash-interactive-5.2p37
/nix/store/55qalpa3g8j617qf13wggyiibhba8j1w-bzip2-1.0.8
/nix/store/m511j7qjg93h7cia4jv4yhlszyprj79d-bzip2-1.0.8-bin
/nix/store/lbra4wxgfjn81v5lragbrl11mqz1qfcd-cctools-1010.6
/nix/store/z8pajm0l5m3k1kys4ds0yzv2arsywxjc-cctools-1010.6-libtool
/nix/store/a217km5hlmmxdsb6ff3bfi7dfihm8pbm-cctools-binutils-darwin-1010.6
/nix/store/n8607yw4jvrxsr5jlnjl6vvzh05whz3h-cctools-binutils-darwin-wrapper-1010.6
/nix/store/ynh5hdy6j9zxss67miwm8j44k2ggvisc-clang-19.1.6
/nix/store/06x734dy62b4yjmz2fgl0f1rrmkbhnj7-clang-19.1.6-lib
/nix/store/x25662zlrvzy1aavv8y5vrk40bj8c8hr-clang-wrapper-19.1.6
/nix/store/6hbwahhjph68bm3nnb5r7g0hzag1n53j-compiler-rt-libc-19.1.6
/nix/store/v4mfn5ac8pqpkz8ig51qmz737n5cpp1k-compiler-rt-libc-19.1.6-dev
/nix/store/27hlrqpjy40ifmmy3rw2fbi5b57l8cmw-coreutils-9.5
/nix/store/0q8qdim08a65xpd9v7b7dr5zv1y79lhg-cups-headers-2.4.11
/nix/store/d4b4vfci0x8q80r42mjm0q62z7711ffw-diffutils-3.10
/nix/store/4pig8jkghlljb8nwk5sjbdcya0za0wd6-ed-1.20.2
/nix/store/m3y4fx8fpqzmarzkmfgsqy48nank4dhy-expand-response-params
/nix/store/jlkrvhxalxc35ggbcgaww83mc2nsnpnn-file-5.46
/nix/store/2kixgwpf8y4xd88hv28wckv6irqvlv1a-findutils-4.10.0
/nix/store/invr3ksha5yiidygjapnxjgrhbnj10dl-gawk-5.3.1
/nix/store/6ni8haj5f4r2a15yfq34h8imvkv3bg6m-gettext-0.22.5
/nix/store/n8bkkqxn9n3rzpsq3vj57qaskxv1sw2b-gmp-with-cxx-6.3.0
/nix/store/c7n266xkng5ikxpsvi1h6k85vy9417v6-gnu-config-2024-01-01
/nix/store/2l7h1k77n3dxw34ipwll9x2jrxf1whi2-gnugrep-3.11
/nix/store/lgwqlms7xmi8blp2859r44kjacr5zxh4-gnumake-4.4.1
/nix/store/a682ixpxigvv182r3l4km27vc17x1848-gnused-4.9
/nix/store/jii7r1dzxrmwni63r092vh1q4pvyg6lz-gnutar-1.35
/nix/store/h6dg2cxp4j9fs8dmcxshz9sa3f8dcjrh-gzip-1.13
/nix/store/v1dnrfnnib3jpzydlmvc187fd28iwyvx-ld64-951.9
/nix/store/qcz97xbqwsx01z1jsk3l7kgkj8lihxnb-ld64-951.9-lib
/nix/store/171r4qr06fvcxfx0n8vw945jfna4p4by-libSystem-B
/nix/store/v2qjr45k2qqmjn0sjd5ilc0y9hl06rd6-libcxx-19.1.6
/nix/store/cvl21fnjrwqcw59vkvhfdfl5w4d0xfaw-libcxx-19.1.6-dev
/nix/store/w57x52wz4b1x1ldh3i372smrrr7p0biw-libffi-35
/nix/store/xlrxyhdh3irs3fh5rc94y99n9mvpjj7v-libiconv-107
/nix/store/60v52ynj47kjc87xy2xh46rpaawljqpm-libiconv-107-dev
/nix/store/yi23jg9jzalw2285w9m7wi3mq2cd4b8h-libresolv-83
/nix/store/pa34wly9knz47f3ix7c8wncsf9n43x2l-libresolv-83-dev
/nix/store/1aqp5cad014y7m5l29q2h1aj60zxi87n-libsbuf-14.1.0
/nix/store/2fn1rdhw568mvyny08bnf8jv3spm4397-libsbuf-14.1.0-dev
/nix/store/ny5jp2mzmr46z3r5dyx2iis6w98wz25f-libtapi-1500.0.12.3
/nix/store/s0afcdp0lx1isbmvlh8yc0w36x3a5lhq-libutil-72
/nix/store/q2rg6zg1hryhv66gm7gqcjzd1fkkq9vp-libxml2-2.13.5
/nix/store/4h8r0g9ybg3r21r1x16zmwn31j5wj0pj-llvm-19.1.6
/nix/store/yicyl0fwb4wpbvspildcadp8445hbfbp-llvm-19.1.6-lib
/nix/store/7hzklcikx8z856xm859s6nvp5f2w5ml5-locale-118
/nix/store/dj29c2yynbanh00jh0xw2yzym0501g2l-ncurses-6.4.20221231
/nix/store/xjfmnk56gg5rf245yjgwih3h0l3wfcva-ncurses-6.4.20221231-dev
/nix/store/2fy9xphg6rik9ynlqyn15lrik4p4bcch-ncurses-6.4.20221231-man
/nix/store/0jnsnghnmvz6swa6p1si8187pnjrl74l-nix-info
/nix/store/0iqy9n7x6ygvbcvfz8nv9xj8dbhk9il3-openssl-3.3.2
/nix/store/h681ir0m8v2i0psmcfrl85cdqxi90w7c-patch-2.7.6
/nix/store/2d9mpcq5q1cyd8am9n045sf1r4l42mky-pcre2-10.44
/nix/store/1dsvyaadl32452gxrzq9csigj1j5zhb4-readline-8.2p13
/nix/store/n7zxx8qk97vyy6aycn0kvc4wplk0gb4g-stdenv-darwin
/nix/store/1p2nilfzgns0zji480kp9xf1552npxcx-update-autotools-gnu-config-scripts-hook
/nix/store/bi8x4avpdz58ki106xkyrjkj30c3slbd-xar-minimal-501-lib
/nix/store/080kca3awfq823q7y7ipl5pp643agqx0-xcbuild-0.1.1-unstable-2019-11-20
/nix/store/l45wpqa95wm1ghmnw28zy55v1xqbyppr-xcbuild-0.1.1-unstable-2019-11-20-xcrun
/nix/store/c0d762r3m1m3n3qc4dnffavp93004fzx-xz-5.6.3
/nix/store/fmgshpsi3m4c00hipfv9sqandfr7xjwl-xz-5.6.3-bin
/nix/store/h6vk8rkl8yj17s8pw8d1yh7hg04d59s3-zlib-1.3.1
copying path '/nix/store/iv1k5wr7hbxm51qmdn6l2inq7rd2vfhk-bash-5.2p37' from 'https://cache.nixos.org'...
copying path '/nix/store/7y3fffj5ph3285p0cb0x9jhqz3agdybm-DarwinTools-1' from 'https://cache.nixos.org'...
copying path '/nix/store/invr3ksha5yiidygjapnxjgrhbnj10dl-gawk-5.3.1' from 'https://cache.nixos.org'...
copying path '/nix/store/a682ixpxigvv182r3l4km27vc17x1848-gnused-4.9' from 'https://cache.nixos.org'...
copying path '/nix/store/xlrxyhdh3irs3fh5rc94y99n9mvpjj7v-libiconv-107' from 'https://cache.nixos.org'...
copying path '/nix/store/7hzklcikx8z856xm859s6nvp5f2w5ml5-locale-118' from 'https://cache.nixos.org'...
copying path '/nix/store/dj29c2yynbanh00jh0xw2yzym0501g2l-ncurses-6.4.20221231' from 'https://cache.nixos.org'...
copying path '/nix/store/55qalpa3g8j617qf13wggyiibhba8j1w-bzip2-1.0.8' from 'https://cache.nixos.org'...
copying path '/nix/store/0q8qdim08a65xpd9v7b7dr5zv1y79lhg-cups-headers-2.4.11' from 'https://cache.nixos.org'...
copying path '/nix/store/m3y4fx8fpqzmarzkmfgsqy48nank4dhy-expand-response-params' from 'https://cache.nixos.org'...
copying path '/nix/store/171r4qr06fvcxfx0n8vw945jfna4p4by-libSystem-B' from 'https://cache.nixos.org'...
copying path '/nix/store/v2qjr45k2qqmjn0sjd5ilc0y9hl06rd6-libcxx-19.1.6' from 'https://cache.nixos.org'...
copying path '/nix/store/2d9mpcq5q1cyd8am9n045sf1r4l42mky-pcre2-10.44' from 'https://cache.nixos.org'...
copying path '/nix/store/c0d762r3m1m3n3qc4dnffavp93004fzx-xz-5.6.3' from 'https://cache.nixos.org'...
copying path '/nix/store/h6vk8rkl8yj17s8pw8d1yh7hg04d59s3-zlib-1.3.1' from 'https://cache.nixos.org'...
copying path '/nix/store/yi23jg9jzalw2285w9m7wi3mq2cd4b8h-libresolv-83' from 'https://cache.nixos.org'...
copying path '/nix/store/w57x52wz4b1x1ldh3i372smrrr7p0biw-libffi-35' from 'https://cache.nixos.org'...
copying path '/nix/store/1aqp5cad014y7m5l29q2h1aj60zxi87n-libsbuf-14.1.0' from 'https://cache.nixos.org'...
copying path '/nix/store/2fy9xphg6rik9ynlqyn15lrik4p4bcch-ncurses-6.4.20221231-man' from 'https://cache.nixos.org'...
copying path '/nix/store/0iqy9n7x6ygvbcvfz8nv9xj8dbhk9il3-openssl-3.3.2' from 'https://cache.nixos.org'...
copying path '/nix/store/m511j7qjg93h7cia4jv4yhlszyprj79d-bzip2-1.0.8-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/jlkrvhxalxc35ggbcgaww83mc2nsnpnn-file-5.46' from 'https://cache.nixos.org'...
copying path '/nix/store/2fn1rdhw568mvyny08bnf8jv3spm4397-libsbuf-14.1.0-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/pa34wly9knz47f3ix7c8wncsf9n43x2l-libresolv-83-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/fmgshpsi3m4c00hipfv9sqandfr7xjwl-xz-5.6.3-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/4pig8jkghlljb8nwk5sjbdcya0za0wd6-ed-1.20.2' from 'https://cache.nixos.org'...
copying path '/nix/store/c7n266xkng5ikxpsvi1h6k85vy9417v6-gnu-config-2024-01-01' from 'https://cache.nixos.org'...
copying path '/nix/store/h6dg2cxp4j9fs8dmcxshz9sa3f8dcjrh-gzip-1.13' from 'https://cache.nixos.org'...
copying path '/nix/store/h681ir0m8v2i0psmcfrl85cdqxi90w7c-patch-2.7.6' from 'https://cache.nixos.org'...
copying path '/nix/store/6hbwahhjph68bm3nnb5r7g0hzag1n53j-compiler-rt-libc-19.1.6' from 'https://cache.nixos.org'...
copying path '/nix/store/n8bkkqxn9n3rzpsq3vj57qaskxv1sw2b-gmp-with-cxx-6.3.0' from 'https://cache.nixos.org'...
copying path '/nix/store/cvl21fnjrwqcw59vkvhfdfl5w4d0xfaw-libcxx-19.1.6-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/ny5jp2mzmr46z3r5dyx2iis6w98wz25f-libtapi-1500.0.12.3' from 'https://cache.nixos.org'...
copying path '/nix/store/s0afcdp0lx1isbmvlh8yc0w36x3a5lhq-libutil-72' from 'https://cache.nixos.org'...
copying path '/nix/store/1p2nilfzgns0zji480kp9xf1552npxcx-update-autotools-gnu-config-scripts-hook' from 'https://cache.nixos.org'...
copying path '/nix/store/1dsvyaadl32452gxrzq9csigj1j5zhb4-readline-8.2p13' from 'https://cache.nixos.org'...
copying path '/nix/store/xjfmnk56gg5rf245yjgwih3h0l3wfcva-ncurses-6.4.20221231-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/6ni8haj5f4r2a15yfq34h8imvkv3bg6m-gettext-0.22.5' from 'https://cache.nixos.org'...
copying path '/nix/store/2l7h1k77n3dxw34ipwll9x2jrxf1whi2-gnugrep-3.11' from 'https://cache.nixos.org'...
copying path '/nix/store/60v52ynj47kjc87xy2xh46rpaawljqpm-libiconv-107-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/q2rg6zg1hryhv66gm7gqcjzd1fkkq9vp-libxml2-2.13.5' from 'https://cache.nixos.org'...
copying path '/nix/store/27hlrqpjy40ifmmy3rw2fbi5b57l8cmw-coreutils-9.5' from 'https://cache.nixos.org'...
copying path '/nix/store/i9ckv9hbpq23cqgzs64g4gankb950w9p-bash-interactive-5.2p37' from 'https://cache.nixos.org'...
copying path '/nix/store/yicyl0fwb4wpbvspildcadp8445hbfbp-llvm-19.1.6-lib' from 'https://cache.nixos.org'...
copying path '/nix/store/080kca3awfq823q7y7ipl5pp643agqx0-xcbuild-0.1.1-unstable-2019-11-20' from 'https://cache.nixos.org'...
copying path '/nix/store/qcz97xbqwsx01z1jsk3l7kgkj8lihxnb-ld64-951.9-lib' from 'https://cache.nixos.org'...
copying path '/nix/store/bi8x4avpdz58ki106xkyrjkj30c3slbd-xar-minimal-501-lib' from 'https://cache.nixos.org'...
copying path '/nix/store/v4mfn5ac8pqpkz8ig51qmz737n5cpp1k-compiler-rt-libc-19.1.6-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/d4b4vfci0x8q80r42mjm0q62z7711ffw-diffutils-3.10' from 'https://cache.nixos.org'...
copying path '/nix/store/2kixgwpf8y4xd88hv28wckv6irqvlv1a-findutils-4.10.0' from 'https://cache.nixos.org'...
copying path '/nix/store/0jnsnghnmvz6swa6p1si8187pnjrl74l-nix-info' from 'https://cache.nixos.org'...
copying path '/nix/store/l45wpqa95wm1ghmnw28zy55v1xqbyppr-xcbuild-0.1.1-unstable-2019-11-20-xcrun' from 'https://cache.nixos.org'...
copying path '/nix/store/lgwqlms7xmi8blp2859r44kjacr5zxh4-gnumake-4.4.1' from 'https://cache.nixos.org'...
copying path '/nix/store/jii7r1dzxrmwni63r092vh1q4pvyg6lz-gnutar-1.35' from 'https://cache.nixos.org'...
copying path '/nix/store/06x734dy62b4yjmz2fgl0f1rrmkbhnj7-clang-19.1.6-lib' from 'https://cache.nixos.org'...
copying path '/nix/store/v1dnrfnnib3jpzydlmvc187fd28iwyvx-ld64-951.9' from 'https://cache.nixos.org'...
copying path '/nix/store/4h8r0g9ybg3r21r1x16zmwn31j5wj0pj-llvm-19.1.6' from 'https://cache.nixos.org'...
copying path '/nix/store/z8pajm0l5m3k1kys4ds0yzv2arsywxjc-cctools-1010.6-libtool' from 'https://cache.nixos.org'...
copying path '/nix/store/lbra4wxgfjn81v5lragbrl11mqz1qfcd-cctools-1010.6' from 'https://cache.nixos.org'...
copying path '/nix/store/ynh5hdy6j9zxss67miwm8j44k2ggvisc-clang-19.1.6' from 'https://cache.nixos.org'...
copying path '/nix/store/a217km5hlmmxdsb6ff3bfi7dfihm8pbm-cctools-binutils-darwin-1010.6' from 'https://cache.nixos.org'...
copying path '/nix/store/6py65dicilvc6qxfra4mzw0xpxw2vc06-apple-sdk-11.3' from 'https://cache.nixos.org'...
copying path '/nix/store/n8607yw4jvrxsr5jlnjl6vvzh05whz3h-cctools-binutils-darwin-wrapper-1010.6' from 'https://cache.nixos.org'...
copying path '/nix/store/x25662zlrvzy1aavv8y5vrk40bj8c8hr-clang-wrapper-19.1.6' from 'https://cache.nixos.org'...
copying path '/nix/store/n7zxx8qk97vyy6aycn0kvc4wplk0gb4g-stdenv-darwin' from 'https://cache.nixos.org'...
- system: `"aarch64-darwin"`
- host os: `Darwin 23.2.0, macOS 14.2`
- multi-user?: `yes`
- sandbox: `no`
- version: `nix-env (Nix) 2.26.1`
- channels(root): `"nixpkgs"`
- nixpkgs: `/nix/store/3v9y0wnx4nn6xlsqywgk7gszkrdch6n4-nixpkgs/nixpkgs`
@Mini ~ %