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
MacBookPro% 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 4267 100 4267 0 0 5682 0 --:--:-- --:--:-- --:--:-- 5682
downloading Nix 2.26.2 binary tarball for aarch64-darwin from 'https://releases.nixos.org/nix/nix-2.26.2/nix-2.26.2-aarch64-darwin.tar.xz' to '/var/folders/vh/3pfk9szd6pl3cm80jhlgyqs80000gn/T/nix-binary-tarball-unpack.XXXXXXXXXX.LuEm80sGWG'...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 26.2M 100 26.2M 0 0 83.1M 0 --:--:-- --:--:-- --:--:-- 83.2M
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 [351..382]) and groups (gid 350)
that the Nix daemon uses to run builds. To create system users
in a different range, exit and run this tool again with
NIX_FIRST_BUILD_UID set.
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: CA069A52-A1A5-4087-A83D-CBC1667E688E
encrypted: yes
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo security find-generic-password -s CA069A52-A1A5-4087-A83D-CBC1667E688E -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 CA069A52-A1A5-4087-A83D-CBC1667E688E
to confirm the password actually unlocks the volume
Password:Password:
sudo: a password is required
sudo: a password is required
---- warning! ------------------------------------------------------------------
This volume is encrypted, but I don't see a password to decrypt it.
The quick fix is to let me delete this volume and make you a new one.
If that's okay, enter your (sudo) password to continue. If not, you
can ensure the decryption password is in your system keychain with a
"Where" (service) field set to this volume's UUID:
CA069A52-A1A5-4087-A83D-CBC1667E688E
Can I delete this volume?
[y/n] y
Enter your password to delete this volume:
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/sbin/diskutil unmount force disk3s7
to unmount the Nix volume
Password:
Volume Nix Store on disk3s7 force-unmounted
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/sbin/diskutil apfs deleteVolume disk3s7
to delete the Nix volume
Password:
Started APFS operation
Deleting APFS Volume from its APFS Container
Unmounting disk3s7
Erasing any xART session referenced by CA069A52-A1A5-4087-A83D-CBC1667E688E
Deleting Volume
Removing any Preboot and Recovery Directories
Finished APFS operation
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/vh/3pfk9szd6pl3cm80jhlgyqs80000gn/T/tmp.Thd9i6XTZ3/synthetic.conf.edit,
but I think I know how to edit it out.
Here's the diff:
run private/var/run
nix
Does the change above look right?
[y/n] y
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo cp /etc/synthetic.conf /var/folders/vh/3pfk9szd6pl3cm80jhlgyqs80000gn/T/tmp.Thd9i6XTZ3/synthetic.conf.edit
remove nix from /var/folders/vh/3pfk9szd6pl3cm80jhlgyqs80000gn/T/tmp.Thd9i6XTZ3/synthetic.conf.edit
Password:
During install, I add '/nix' to /etc/fstab so that macOS knows what
mount options to use for the Nix volume.
Password:
Can I remove /etc/fstab?
[y/n] y
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo rm /etc/fstab
to remove /etc/fstab
Password:
The installer adds a LaunchDaemon to mount your Nix volume: org.nixos.darwin-store
Can I remove it?
[y/n] y
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo launchctl bootout system/org.nixos.darwin-store
to terminate the daemon
Password:
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo rm /Library/LaunchDaemons/org.nixos.darwin-store.plist
to remove the daemon definition
Password:
~~> 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/vh/3pfk9szd6pl3cm80jhlgyqs80000gn/T/tmp.Thd9i6XTZ3
Nix Root: /nix
Build Users: 32
Build Group ID: 350
Build Group Name: nixbld
build users:
Username: UID
_nixbld1: 351
_nixbld2: 352
_nixbld3: 353
_nixbld4: 354
_nixbld5: 355
_nixbld6: 356
_nixbld7: 357
_nixbld8: 358
_nixbld9: 359
_nixbld10: 360
_nixbld11: 361
_nixbld12: 362
_nixbld13: 363
_nixbld14: 364
_nixbld15: 365
_nixbld16: 366
_nixbld17: 367
_nixbld18: 368
_nixbld19: 369
_nixbld20: 370
_nixbld21: 371
_nixbld22: 372
_nixbld23: 373
_nixbld24: 374
_nixbld25: 375
_nixbld26: 376
_nixbld27: 377
_nixbld28: 378
_nixbld29: 379
_nixbld30: 380
_nixbld31: 381
_nixbld32: 382
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
Password:
Unmount failed for disk3s7
~~> Configuring /etc/fstab to specify volume mount options
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/sbin/vifs
to add nix to fstab
Password:
~~> Encrypt the Nix volume
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/sbin/diskutil mount Nix Store
to mount your Nix volume for encrypting
Password:
Failed to find disk Nix Store
---- 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
MacBookPro%
Platform
Additional information
Output
Output
Checklist
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: