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
<!-- paste console output here and remove this comment -->
❯❯ sh <(curl -L https://nixos.org/nix/install)
% 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 7951 0 --:--:-- --:--:-- --:--:-- 20779
downloading Nix 2.19.1 binary tarball for aarch64-darwin from 'https://releases.nixos.org/nix/nix-2.19.1/nix-2.19.1-aarch64-darwin.tar.xz' to '/var/folders/l2/781wdxds64s3q0xlp0b_f_wh0000gn/T/nix-binary-tarball-unpack.XXXXXXXXXX.7CrG3g5m'...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 10.9M 100 10.9M 0 0 10.0M 0 0:00:01 0:00:01 --:--:-- 10.0M
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:
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.
Show you what I am going to install and where. Then I will ask
if you are ready to continue.
Create the system users (uids [301..332]) and groups (gid 30000)
that the Nix daemon uses to run builds.
Perform the basic installation of the Nix files daemon.
Configure your shell to import special Nix Profile files, so you
can use Nix.
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.
~~> 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.
---- 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
Approval Required: You are about to run this Sudo Command with administrative privileges. Please enter your password and press OK to proceed.
Password:
~~> Creating a Nix volume
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/sbin/diskutil apfs addVolume disk3 APFS Nix Store -nomount
to create a new APFS volume 'Nix Store' on disk3
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/sbin/diskutil unmount force disk3s7
to ensure the Nix volume is not mounted
disk3s7 was already unmounted
~~> Configuring /etc/fstab to specify volume mount options
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/sbin/vifs
to add nix to fstab
Approval Required: You are about to run this Sudo Command with administrative privileges. Please enter your password and press OK to proceed.
Password:
~~> Encrypt the Nix volume
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/sbin/diskutil mount Nix Store
to mount your Nix volume for encrypting
Volume Nix Store on Nix Store mounted
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/bin/security -i
to add your Nix volume's password to Keychain
Approval Required: You are about to run this Sudo Command with administrative privileges. Please enter your password and press OK to proceed.
Password:
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/sbin/diskutil apfs encryptVolume Nix Store -user disk -stdinpassphrase
to actually encrypt your Nix volume
Encrypting with the new "Disk" crypto user on disk3s7
The new "Disk" user will be the only one who has initial access to disk3s7
The new APFS crypto user UUID will be 1FEBA83F-D6C2-49B8-8DD5-17D6FF66B446
Encryption has likely completed due to AES hardware; see "diskutil apfs list"
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/sbin/diskutil unmount force Nix Store
to unmount the encrypted volume
Volume Nix Store on disk3s7 force-unmounted
~~> Configuring LaunchDaemon to mount 'Nix Store'
---- sudo execution ------------------------------------------------------------
I am executing:
Approval Required: You are about to run this Sudo Command with administrative privileges. Please enter your password and press OK to proceed.
Password:
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo launchctl bootstrap system /Library/LaunchDaemons/org.nixos.darwin-store.plist
to launch the Nix volume mounter
Approval Required: You are about to run this Sudo Command with administrative privileges. Please enter your password and press OK to proceed.
Password:
---- sudo execution ------------------------------------------------------------
I am executing:
Approval Required: You are about to run this Sudo Command with administrative privileges. Please enter your password and press OK to proceed.
Password:
~~> Setting up the build group nixbld
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/sbin/dseditgroup -o create -r Nix build group for nix-daemon -i 30000 nixbld
Create the Nix build group, nixbld
Approval Required: You are about to run this Sudo Command with administrative privileges. Please enter your password and press OK to proceed.
Password:
Created: Yes
~~> Setting up the build user _nixbld1
---- sudo execution ------------------------------------------------------------
I am executing:
Approval Required: You are about to run this Sudo Command with administrative privileges. Please enter your password and press OK to proceed.
Password:
Sounds like you already have a user with the same UID (see #6153).
The easy workaround is deleting that user/users if you no longer use the software that needs them. If you still need them, there's an overview of how to find a different UID range and modify the installer in this comment:
Platform
Additional information
Output
Output
❯❯ sh <(curl -L https://nixos.org/nix/install)
% 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 7951 0 --:--:-- --:--:-- --:--:-- 20779
downloading Nix 2.19.1 binary tarball for aarch64-darwin from 'https://releases.nixos.org/nix/nix-2.19.1/nix-2.19.1-aarch64-darwin.tar.xz' to '/var/folders/l2/781wdxds64s3q0xlp0b_f_wh0000gn/T/nix-binary-tarball-unpack.XXXXXXXXXX.7CrG3g5m'...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 10.9M 100 10.9M 0 0 10.0M 0 0:00:01 0:00:01 --:--:-- 10.0M
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:
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.
Show you what I am going to install and where. Then I will ask
if you are ready to continue.
Create the system users (uids [301..332]) and groups (gid 30000)
that the Nix daemon uses to run builds.
Perform the basic installation of the Nix files daemon.
Configure your shell to import special Nix Profile files, so you
can use Nix.
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:
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.
~~> 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/l2/781wdxds64s3q0xlp0b_f_wh0000gn/T/tmp.2ZHT3YbD
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:
to add Nix to /etc/synthetic.conf
Approval Required: You are about to run this Sudo Command with administrative privileges. Please enter your password and press OK to proceed.
Password:
~~> Creating a Nix volume
---- sudo execution ------------------------------------------------------------
I am executing:
to create a new APFS volume 'Nix Store' on disk3
---- sudo execution ------------------------------------------------------------
I am executing:
to ensure the Nix volume is not mounted
disk3s7 was already unmounted
~~> Configuring /etc/fstab to specify volume mount options
---- sudo execution ------------------------------------------------------------
I am executing:
to add nix to fstab
Approval Required: You are about to run this Sudo Command with administrative privileges. Please enter your password and press OK to proceed.
Password:
~~> Encrypt the Nix volume
---- sudo execution ------------------------------------------------------------
I am executing:
to mount your Nix volume for encrypting
Volume Nix Store on Nix Store mounted
---- sudo execution ------------------------------------------------------------
I am executing:
to add your Nix volume's password to Keychain
Approval Required: You are about to run this Sudo Command with administrative privileges. Please enter your password and press OK to proceed.
Password:
---- sudo execution ------------------------------------------------------------
I am executing:
to actually encrypt your Nix volume
Encrypting with the new "Disk" crypto user on disk3s7
The new "Disk" user will be the only one who has initial access to disk3s7
The new APFS crypto user UUID will be 1FEBA83F-D6C2-49B8-8DD5-17D6FF66B446
Encryption has likely completed due to AES hardware; see "diskutil apfs list"
---- sudo execution ------------------------------------------------------------
I am executing:
to unmount the encrypted volume
Volume Nix Store on disk3s7 force-unmounted
~~> Configuring LaunchDaemon to mount 'Nix Store'
---- sudo execution ------------------------------------------------------------
I am executing:
to install the Nix volume mounter
Approval Required: You are about to run this Sudo Command with administrative privileges. Please enter your password and press OK to proceed.
Password:
---- sudo execution ------------------------------------------------------------
I am executing:
to launch the Nix volume mounter
Approval Required: You are about to run this Sudo Command with administrative privileges. Please enter your password and press OK to proceed.
Password:
---- sudo execution ------------------------------------------------------------
I am executing:
to launch the Nix volume mounter
Approval Required: You are about to run this Sudo Command with administrative privileges. Please enter your password and press OK to proceed.
Password:
~~> Setting up the build group nixbld
---- sudo execution ------------------------------------------------------------
I am executing:
Create the Nix build group, nixbld
Approval Required: You are about to run this Sudo Command with administrative privileges. Please enter your password and press OK to proceed.
Password:
Created: Yes
~~> Setting up the build user _nixbld1
---- sudo execution ------------------------------------------------------------
I am executing:
Creating the Nix build user (#1), _nixbld1
Approval Required: You are about to run this Sudo Command with administrative privileges. Please enter your password and press OK to proceed.
attribute status: eDSRecordAlreadyExists DS Error: -14135 (eDSRecordAlreadyExists)Password:
Priorities
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: