You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I can't finish the installation of Nix on a macOS Catalina using multi-user.
Steps To Reproduce
sh <(curl -L https://nixos.org/nix/install) --darwin-use-unencrypted-nix-store-volume --daemon
yes to all the options.
sh <(curl -L https://nixos.org/nix/install) --darwin-use-unencrypted-nix-store-volume --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 2490 100 2490 0 0 3167 0 --:--:-- --:--:-- --:--:-- 3167
downloading Nix 2.3.7 binary tarball for x86_64-darwin from 'https://releases.nixos.org/nix/nix-2.3.7/nix-2.3.7-x86_64-darwin.tar.xz' to '/var/folders/0m/_pktt2gj0sjcmjt7dhv7gc442j_tbb/T/nix-binary-tarball-unpack.XXXXXXXXXX.DwPqQx9h'...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 26.4M 100 26.4M 0 0 32.1M 0 --:--:-- --:--:-- --:--:-- 32.1M
Note: a multi-user installation is possible. See https://nixos.org/nix/manual/#sect-multi-user-installation
Creating volume and mountpoint /nix.
------------------------------------------------------------------
| This installer will create a volume for the nix store and |
| configure it to mount at /nix. Follow these steps to uninstall. |
------------------------------------------------------------------
1. Remove the entry from fstab using 'sudo vifs'
2. Destroy the data volume using 'diskutil apfs deleteVolume'
3. Remove the 'nix' line from /etc/synthetic.conf or the file
Using existing 'Nix Store' volume
Switching to the Daemon-based 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 one.
2. Show you what we are going to install and where. Then we will ask
if you are ready to continue.
3. Create the system users and groups 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 we will do?
[y/n] y
We will:
- make sure your computer doesn't already have Nix files
(if it does, I will tell you how to clean them up.)
- create local users (see the list above for the users we'll make)
- create a local group (nixbld)
- install Nix in to /nix
- create a configuration file in /etc/nix
- set up the "default profile" by creating some Nix-related files in
/var/root
- back up /etc/bashrc to /etc/bashrc.backup-before-nix
- update /etc/bashrc to include some Nix configuration
- back up /etc/zshrc to /etc/zshrc.backup-before-nix
- update /etc/zshrc to include some Nix configuration
- load and start a LaunchDaemon (at /Library/LaunchDaemons/org.nixos.nix-daemon.plist) for nix-daemon
Ready to continue?
[y/n] y
---- let's talk about sudo -----------------------------------------------------
This script is going to call sudo a lot. Every time we 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. We 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 we use sudo?
[y/n] y
Yay! Thanks! Let's get going!
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo test -e /var/root/.nix-defexpr
making sure that /var/root/.nix-defexpr doesn't exist
Password:
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo test -e /var/root/.nix-channels
making sure that /var/root/.nix-channels doesn't exist
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo test -e /var/root/.nix-profile
making sure that /var/root/.nix-profile doesn't exist
---- Nix config report ---------------------------------------------------------
Temp Dir: /var/folders/0m/_pktt2gj0sjcmjt7dhv7gc442j_tbb/T/tmp.XXXXXXXXXX.ncAMCX6Z
Nix Root: /nix
Build Users: 32
Build Group ID: 30000
Build Group Name: nixbld
build users:
Username: UID
nixbld1: 30001
nixbld2: 30002
nixbld3: 30003
nixbld4: 30004
nixbld5: 30005
nixbld6: 30006
nixbld7: 30007
nixbld8: 30008
nixbld9: 30009
nixbld10: 30010
nixbld11: 30011
nixbld12: 30012
nixbld13: 30013
nixbld14: 30014
nixbld15: 30015
nixbld16: 30016
nixbld17: 30017
nixbld18: 30018
nixbld19: 30019
nixbld20: 30020
nixbld21: 30021
nixbld22: 30022
nixbld23: 30023
nixbld24: 30024
nixbld25: 30025
nixbld26: 30026
nixbld27: 30027
nixbld28: 30028
nixbld29: 30029
nixbld30: 30030
nixbld31: 30031
nixbld32: 30032
Ready to continue?
[y/n] y
~~> Setting up the build group nixbld
Exists: Yes
~~> Setting up the build user nixbld1
Exists: Yes
Hidden: Yes
Home Directory: /var/empty
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Note: Nix build user 32
Logins Disabled: Yes
Member of nixbld: Yes
PrimaryGroupID: 30000
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo mkdir -pv -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/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 mkdir -pv -m 1775 /nix/store
to make the basic directory structure of Nix (part 2)
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo chgrp nixbld /nix/store
to make the basic directory structure of Nix (part 3)
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo mkdir -pv -m 0555 /etc/nix
to place the default nix daemon configuration (part 1)
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo install -m 0664 /var/folders/0m/_pktt2gj0sjcmjt7dhv7gc442j_tbb/T/tmp.XXXXXXXXXX.ncAMCX6Z/.nix-channels /var/root/.nix-channels
to set up the default system channel (part 1)
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo rsync -rlpt --chmod=-w ./store/0hb6my3nxjzpj6pydc29hmnwzrna3kal-aws-c-common-0.3.11 ./store/0v3s5njn7584bjwjxnh9r46h088mxirf-nss-cacert-3.49.2 ./store/11k2c9waxgm48g4c5y7bxxywfpnaav79-gettext-0.20.1 ./store/1ld4c4ppnhjb0rfhqxz4rzy9hc8ws867-Libsystem-osx-10.12.6 ./store/2qvilgsl9mxdp6zhj6gg9yx2avzm0zs0-editline-1.17.0 ./store/3vm37rhzw7f9as3r3zl0b3bqkqjx5g9h-ICU-osx-10.10.5 ./store/5ira7xgs92inqz1x8l0n1wci4r79hnd0-nix-2.3.7 ./store/6ffck7fs7zvj9p4kg0f9fmrgr4g55anf-sqlite-3.32.2 ./store/71w1hld76b4s6xx6a3xpw9s55pb7mh77-brotli-1.0.7-lib ./store/7483gs9ycf6hbq7vi3cd51v8c8vjafia-coreutils-8.31 ./store/7j6f5d7g521ibfiay3ybg9rp4990gqly-openssl-1.1.1g ./store/8352fpm8mp9143b3nnsy1f53bd1ralb7-nghttp2-1.40.0-lib ./store/9n64v1kkr039kpxhik8rp5g84ps6f8hj-libxml2-2.9.10 ./store/9qvgjw3h8rb1qkrv5xqhqx1x97q1znqd-curl-7.70.0 ./store/a4cvqiffyfwd8y0abgwiprs26y64rk9k-zlib-1.2.11 ./store/b7sfnq5ixvrp75mp3bac4rayr3g66l3m-xz-5.2.4 ./store/byws9cna12a3dz4514va1p2ck06sa4hk-gmp-6.2.0 ./store/cb3ik7dgbqyd40lvv3p1acadyd294gb3-bzip2-1.0.6.0.1 ./store/dxhqnsj57v19c8jl0g8y7sp99yny8aia-libc++abi-7.1.0 ./store/hapjf49c41s0lxnh6ni12lshqpk1qixs-xz-5.2.4-bin ./store/har6jrgwpzv62dq3v4pql7hi2nh6hjgw-libssh2-1.9.0 ./store/hdv348m16m6xvxlbjpfs2vdiwzv0sqyf-curl-7.70.0 ./store/hs9n3m9982v27fwn3vgf9a9fcdimnf4b-nghttp2-1.40.0-lib ./store/iajw0z5bksn155ldwgkj57njizwm7wvn-gnutar-1.32 ./store/iii5cs51w9mi6rmsjn8lcf8873f5hyzh-libiconv-osx-10.12.6 ./store/ilv0m35i1vv028dzni9n73hns935br2c-openssl-1.1.1g ./store/jg7zqq68n19r0nsq9i8a03s76giylv19-aws-checksums-0.1.5 ./store/jgw3v0f35jp2jwqsgy59gxriq28lqmzc-libsodium-1.0.18 ./store/l3m6m54lyr809q846bd6mf82k1y87zpv-libkrb5-1.17 ./store/lkikzawiz8ivdv9jfci8d4rp7x6nanhz-libkrb5-1.17 ./store/n4kdqd7nxyb4nl3qsg855p1apj51r269-gzip-1.10 ./store/n6czb2cgdn35zj7im4i6nr68js46rrps-icu4c-64.2 ./store/nci2xpwnghp7qwxjq4n7a4pv0xqjiqq3-libc++-7.1.0 ./store/pd7gq8zychfchg9fxahmrqxgxv12wfnj-boehm-gc-8.0.4-dev ./store/qbqg98sx5qfz28iqya6bf1h0i49rp94z-swift-corefoundation ./store/qiy0ddh4c6w55w71kqv0gb1pa4m60gmr-aws-c-event-stream-0.1.1 ./store/r90c6hlg05fm0q0xchgh97rl6lgwji74-boehm-gc-8.0.4 ./store/x9c1v5kj31z20iyy1pgqfnb43ds77xz0-bash-4.4-p23 ./store/y1cwv5aqrhiizgdp8qb94iq32cx5rlb0-boost-1.69.0 ./store/z07bhz9dh7gg98lj50mxqnim1si0cpzz-aws-sdk-cpp-1.7.90 ./store/z5drh32qs7ap7fhazrmcd86spfzwf6dx-libssh2-1.9.0 ./store/zmb47nh8n7a0la14fn1m2fzzyjd1dwah-bzip2-1.0.6.0.1-bin /nix/store/
to copy the basic Nix files to the new store at /nix/store
Alright! We have our first nix at /nix/store/5ira7xgs92inqz1x8l0n1wci4r79hnd0-nix-2.3.7
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /nix/store/5ira7xgs92inqz1x8l0n1wci4r79hnd0-nix-2.3.7/bin/nix-store --load-db
to load data for the first time in to the Nix Database
Just finished getting the nix database ready.
---- 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 HOME=/var/root /nix/store/5ira7xgs92inqz1x8l0n1wci4r79hnd0-nix-2.3.7/bin/nix-env -i /nix/store/5ira7xgs92inqz1x8l0n1wci4r79hnd0-nix-2.3.7
to installing a bootstrapping Nix in to the default Profile
installing 'nix-2.3.7'
building '/nix/store/hqqr5jaxy2kaxij5jzz3kd8gd63qfdkm-user-environment.drv'...
created 7 symlinks in user environment
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo HOME=/var/root /nix/store/5ira7xgs92inqz1x8l0n1wci4r79hnd0-nix-2.3.7/bin/nix-env -i /nix/store/0v3s5njn7584bjwjxnh9r46h088mxirf-nss-cacert-3.49.2
to installing a bootstrapping SSL certificate just for Nix in to the default Profile
installing 'nss-cacert-3.49.2'
building '/nix/store/055gdwqrwg839skhjcp65r2inyzdxs1p-user-environment.drv'...
created 9 symlinks in user environment
---- 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/5ira7xgs92inqz1x8l0n1wci4r79hnd0-nix-2.3.7/bin/nix-channel --update nixpkgs
to update the default channel in the default profile
unpacking channels...
created 1 symlinks in user environment
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo install -m 0664 /var/folders/0m/_pktt2gj0sjcmjt7dhv7gc442j_tbb/T/tmp.XXXXXXXXXX.ncAMCX6Z/nix.conf /etc/nix/nix.conf
to place the default nix daemon configuration (part 2)
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo cp -f /nix/var/nix/profiles/default/Library/LaunchDaemons/org.nixos.nix-daemon.plist /Library/LaunchDaemons/org.nixos.nix-daemon.plist
to set up the nix-daemon as a LaunchDaemon
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo launchctl load /Library/LaunchDaemons/org.nixos.nix-daemon.plist
to load the LaunchDaemon plist for nix-daemon
/Library/LaunchDaemons/org.nixos.nix-daemon.plist: Service is disabled
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo launchctl start org.nixos.nix-daemon
to start the nix-daemon
---- oh no! --------------------------------------------------------------------
Jeeze, 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.
If you can, open an issue at https://github.com/nixos/nix/issues
Or feel free to contact the team,
- on IRC #nixos on irc.freenode.net
- on twitter @nixos_org
Expected behavior
Have a valid nix installation.
The text was updated successfully, but these errors were encountered:
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo launchctl load /Library/LaunchDaemons/org.nixos.nix-daemon.plist
to load the LaunchDaemon plist for nix-daemon
/Library/LaunchDaemons/org.nixos.nix-daemon.plist: Service is disabled
Have you installed Nix before? Your log indicates that the nix-daemon service has previously been disabled.
From the launchctl manpage (SUBCOMMANDS section):
enable | disable service-target
Enables or disables the service in the requested domain.
Once a service is disabled, it cannot be loaded in the specified
domain until it is once again enabled. This state persists across
boots of the device. This subcommand may only target services
within the system domain or user and user-login domains.
Describe the bug
I can't finish the installation of Nix on a macOS Catalina using multi-user.
Steps To Reproduce
sh <(curl -L https://nixos.org/nix/install) --darwin-use-unencrypted-nix-store-volume --daemon
Expected behavior
Have a valid nix installation.
The text was updated successfully, but these errors were encountered: