Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- curl https://nixos.org/nix/install | sh
- % Total % Received % Xferd Average Speed Time Time Time Current
- Dload Upload Total Spent Left Speed
- 100 2358 100 2358 0 0 1566 0 0:00:01 0:00:01 --:--:-- 1567
- downloading Nix 1.11.15 binary tarball for x86_64-darwin from 'https://nixos.org/releases/nix/nix-1.11.15/nix-1.11.15-x86_64-darwin.tar.bz2' to '/var/folders/9s/l0ks1r093p786j3nkp5dzv080000gp/T/nix-binary-tarball-unpack.XXXXXXXXXX.hek3CNuE'...
- % Total % Received % Xferd Average Speed Time Time Time Current
- Dload Upload Total Spent Left Speed
- 100 25.8M 100 25.8M 0 0 32735 0 0:13:48 0:13:48 --:--:-- 36612
- Switching to the Multi-User Darwin 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?
- No TTY, assuming you would say yes :)
- 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/profile to /etc/profile.backup-before-nix
- - update /etc/profile to include some Nix configuration
- - 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?
- No TTY, assuming you would say yes :)
- ---- let's talk about sudo -----------------------------------------------------
- This script is going to call sudo a lot. Normally, it would show you
- exactly what commands it is running and why. However, the script is
- run in a headless fashion, like this:
- $ curl https://nixos.org/nix/install | sh
- or maybe in a CI pipeline. Because of that, we're going to skip the
- verbose output in the interest of brevity.
- If you would like to
- see the output, try like this:
- $ curl -o install-nix https://nixos.org/nix/install
- $ sh ./install-nix
- ---- hardware report -----------------------------------------------------------
- Cores: 4
- ---- Nix config report ---------------------------------------------------------
- Temp Dir: /var/folders/9s/l0ks1r093p786j3nkp5dzv080000gp/T/tmp.XXXXXXXXXX.vTd97nVc
- Nix Root: /nix
- Build Users: 4
- Build Group ID: 30000
- Build Group Name: nixbld
- build users:
- Username: UID
- nixbld1: 30001
- nixbld2: 30002
- nixbld3: 30003
- nixbld4: 30004
- Ready to continue?
- No TTY, assuming you would say yes :)
- ~~> Setting up the build group nixbld
- Exists: Yes
- ~~> Setting up the build user nixbld1
- Exists: Yes
- IsHidden: Yes
- Logins Disabled: Yes
- Member of nixbld: Yes
- PrimaryGroupID: 30000
- ~~> Setting up the build user nixbld2
- Exists: Yes
- IsHidden: Yes
- Logins Disabled: Yes
- Member of nixbld: Yes
- PrimaryGroupID: 30000
- ~~> Setting up the build user nixbld3
- Exists: Yes
- IsHidden: Yes
- Logins Disabled: Yes
- Member of nixbld: Yes
- PrimaryGroupID: 30000
- ~~> Setting up the build user nixbld4
- Exists: Yes
- IsHidden: Yes
- Logins Disabled: Yes
- Member of nixbld: Yes
- PrimaryGroupID: 30000
- ---- oh no! --------------------------------------------------------------------
- Something went wrong, and I didn't find Nix installed at
- /nix/store/dgwz3dxdzs2wwd7pg7cdhvl8rv0qpnbj-nix-1.11.15.
- 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
- ---- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement