Guest User

Untitled

a guest
Jan 1st, 2018
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.61 KB | None | 0 0
  1. cul% mel mbp12-0516 ~
  2. > curl https://nixos.org/nix/install | bash
  3. % Total % Received % Xferd Average Speed Time Time Time Current
  4. Dload Upload Total Spent Left Speed
  5. 100 2471 100 2471 0 0 1939 0 0:00:01 0:00:01 --:--:-- 1941
  6. downloading Nix 1.11.16 binary tarball for x86_64-darwin from 'https://nixos.org/releases/nix/nix-1.11.16/nix-1.11.16-x86_64-darwin.tar.bz2' to '/var/folders/2n/3zm2xqg962n1xk3rv2qk28bw0000gp/T/nix-binary-tarball-unpack.XXXXXXXXXX.0XTPkm8I'...
  7. % Total % Received % Xferd Average Speed Time Time Time Current
  8. Dload Upload Total Spent Left Speed
  9. 100 37.1M 100 37.1M 0 0 121k 0 0:05:13 0:05:13 --:--:-- 284k
  10. Switching to the Multi-User Darwin Installer
  11. Welcome to the Multi-User Nix Installation
  12.  
  13. This installation tool will set up your computer with the Nix package
  14. manager. This will happen in a few stages:
  15.  
  16. 1. Make sure your computer doesn't already have Nix. If it does, I
  17. will show you instructions on how to clean up your old one.
  18.  
  19. 2. Show you what we are going to install and where. Then we will ask
  20. if you are ready to continue.
  21.  
  22. 3. Create the system users and groups that the Nix daemon uses to run
  23. builds.
  24.  
  25. 4. Perform the basic installation of the Nix files daemon.
  26.  
  27. 5. Configure your shell to import special Nix Profile files, so you
  28. can use Nix.
  29.  
  30. 6. Start the Nix daemon.
  31.  
  32. Would you like to see a more detailed list of what we will do?
  33. No TTY, assuming you would say yes :)
  34.  
  35. We will:
  36.  
  37. - make sure your computer doesn't already have Nix files
  38. (if it does, I will tell you how to clean them up.)
  39. - create local users (see the list above for the users we'll make)
  40. - create a local group (nixbld)
  41. - install Nix in to /nix
  42. - create a configuration file in /etc/nix
  43. - set up the "default profile" by creating some Nix-related files in
  44. /var/root
  45. - back up /etc/profile to /etc/profile.backup-before-nix
  46. - update /etc/profile to include some Nix configuration
  47. - back up /etc/bashrc to /etc/bashrc.backup-before-nix
  48. - update /etc/bashrc to include some Nix configuration
  49. - back up /etc/zshrc to /etc/zshrc.backup-before-nix
  50. - update /etc/zshrc to include some Nix configuration
  51. - load and start a LaunchDaemon (at /Library/LaunchDaemons/org.nixos.nix-daemon.plist) for nix-daemon
  52.  
  53. Ready to continue?
  54. No TTY, assuming you would say yes :)
  55.  
  56. ---- let's talk about sudo -----------------------------------------------------
  57. This script is going to call sudo a lot. Normally, it would show you
  58. exactly what commands it is running and why. However, the script is
  59. run in a headless fashion, like this:
  60.  
  61. $ curl https://nixos.org/nix/install | sh
  62.  
  63. or maybe in a CI pipeline. Because of that, we're going to skip the
  64. verbose output in the interest of brevity.
  65.  
  66. If you would like to
  67. see the output, try like this:
  68.  
  69. $ curl -o install-nix https://nixos.org/nix/install
  70. $ sh ./install-nix
  71.  
  72. Password:
  73.  
  74. ---- hardware report -----------------------------------------------------------
  75. Cores: 4
  76.  
  77. ---- Nix config report ---------------------------------------------------------
  78. Temp Dir: /var/folders/2n/3zm2xqg962n1xk3rv2qk28bw0000gp/T/tmp.XXXXXXXXXX.w50qajJO
  79. Nix Root: /nix
  80. Build Users: 4
  81. Build Group ID: 30000
  82. Build Group Name: nixbld
  83.  
  84. build users:
  85. Username: UID
  86. nixbld1: 30001
  87. nixbld2: 30002
  88. nixbld3: 30003
  89. nixbld4: 30004
  90.  
  91. Ready to continue?
  92. No TTY, assuming you would say yes :)
  93.  
  94. ~~> Setting up the build group nixbld
  95. Exists: Yes
  96.  
  97. ~~> Setting up the build user nixbld1
  98. Exists: Yes
  99. IsHidden: Yes
  100. NFSHomeDirectory: /var/empty
  101. RealName: Nix build user 1
  102. Logins Disabled: Yes
  103. Member of nixbld: Yes
  104. PrimaryGroupID: 30000
  105.  
  106. ~~> Setting up the build user nixbld2
  107. Exists: Yes
  108. IsHidden: Yes
  109. NFSHomeDirectory: /var/empty
  110. RealName: Nix build user 2
  111. Logins Disabled: Yes
  112. Member of nixbld: Yes
  113. PrimaryGroupID: 30000
  114.  
  115. ~~> Setting up the build user nixbld3
  116. Exists: Yes
  117. IsHidden: Yes
  118. NFSHomeDirectory: /var/empty
  119. RealName: Nix build user 3
  120. Logins Disabled: Yes
  121. Member of nixbld: Yes
  122. PrimaryGroupID: 30000
  123.  
  124. ~~> Setting up the build user nixbld4
  125. Exists: Yes
  126. IsHidden: Yes
  127. NFSHomeDirectory: /var/empty
  128. RealName: Nix build user 4
  129. Logins Disabled: Yes
  130. Member of nixbld: Yes
  131. PrimaryGroupID: 30000
  132.  
  133. ---- oh no! --------------------------------------------------------------------
  134. Something went wrong, and I didn't find Nix installed at
  135. /nix/store/hwpp7kia2f0in5ns2hiw41q38k30jpj2-nix-1.11.16.
  136.  
  137. We'd love to help if you need it.
  138.  
  139. If you can, open an issue at https://github.com/nixos/nix/issues
  140.  
  141. Or feel free to contact the team,
  142. - on IRC #nixos on irc.freenode.net
  143. - on twitter @nixos_org
  144.  
  145. ---- oh no! --------------------------------------------------------------------
  146. Jeeze, something went wrong. If you can take all the output and open
  147. an issue, we'd love to fix the problem so nobody else has this issue.
  148.  
  149. :(
  150.  
  151. We'd love to help if you need it.
  152.  
  153. If you can, open an issue at https://github.com/nixos/nix/issues
  154.  
  155. Or feel free to contact the team,
  156. - on IRC #nixos on irc.freenode.net
  157. - on twitter @nixos_org
  158. mel mbp12-0516 ~
  159. >
Advertisement
Add Comment
Please, Sign In to add comment