Advertisement
Guest User

Untitled

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