Guest User

Untitled

a guest
Sep 7th, 2017
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.25 KB | None | 0 0
  1.  
  2.  
  3. localadmin$ bash <(curl https://nixos.org/nix/install)
  4.  
  5. % Total % Received % Xferd Average Speed Time Time Time Current
  6.  
  7. Dload Upload Total Spent Left Speed
  8.  
  9. 100 2358 100 2358 0 0 19010 0 --:--:-- --:--:-- --:--:-- 19016
  10.  
  11. downloading Nix 1.11.14 binary tarball for x86_64-darwin from 'https://nixos.org/releases/nix/nix-1.11.14/nix-1.11.14-x86_64-darwin.tar.bz2' to '/var/folders/13/90crxbnj3_q8x_l3gj6thyxw0000gn/T/nix-binary-tarball-unpack.XXXXXXXXXX.k5YUYp0Z'...
  12.  
  13. % Total % Received % Xferd Average Speed Time Time Time Current
  14.  
  15. Dload Upload Total Spent Left Speed
  16.  
  17. 100 24.9M 100 24.9M 0 0 33.3M 0 --:--:-- --:--:-- --:--:-- 33.3M
  18.  
  19. Switching to the Multi-User Darwin Installer
  20.  
  21. Welcome to the Multi-User Nix Installation
  22.  
  23.  
  24. This installation tool will set up your computer with the Nix package
  25.  
  26. manager. This will happen in a few stages:
  27.  
  28.  
  29. 1. Make sure your computer doesn't already have Nix. If it does, I
  30.  
  31. will show you instructions on how to clean up your old one.
  32.  
  33.  
  34. 2. Show you what we are going to install and where. Then we will ask
  35.  
  36. if you are ready to continue.
  37.  
  38.  
  39. 3. Create the system users and groups that the Nix daemon uses to run
  40.  
  41. builds.
  42.  
  43.  
  44. 4. Perform the basic installation of the Nix files daemon.
  45.  
  46.  
  47. 5. Configure your shell to import special Nix Profile files, so you
  48.  
  49. can use Nix.
  50.  
  51.  
  52. 6. Start the Nix daemon.
  53.  
  54.  
  55. Would you like to see a more detailed list of what we will do?
  56.  
  57. [y/n] y
  58.  
  59.  
  60.  
  61. We will:
  62.  
  63.  
  64. - make sure your computer doesn't already have Nix files
  65.  
  66. (if it does, I will tell you how to clean them up.)
  67.  
  68. - create local users (see the list above for the users we'll make)
  69.  
  70. - create a local group (nixbld)
  71.  
  72. - install Nix in to /nix
  73.  
  74. - create a configuration file in /etc/nix
  75.  
  76. - set up the "default profile" by creating some Nix-related files in
  77.  
  78. /var/root
  79.  
  80. - back up /etc/profile to /etc/profile.backup-before-nix
  81.  
  82. - update /etc/profile to include some Nix configuration
  83.  
  84. - back up /etc/bashrc to /etc/bashrc.backup-before-nix
  85.  
  86. - update /etc/bashrc to include some Nix configuration
  87.  
  88. - back up /etc/zshrc to /etc/zshrc.backup-before-nix
  89.  
  90. - update /etc/zshrc to include some Nix configuration
  91.  
  92. - load and start a LaunchDaemon (at /Library/LaunchDaemons/org.nixos.nix-daemon.plist) for nix-daemon
  93.  
  94.  
  95. Ready to continue?
  96.  
  97. [y/n] y
  98.  
  99.  
  100.  
  101. ---- let's talk about sudo -----------------------------------------------------
  102.  
  103. This script is going to call sudo a lot. Every time we do, it'll
  104.  
  105. output exactly what it'll do, and why.
  106.  
  107.  
  108. Just like this:
  109.  
  110.  
  111. ---- sudo execution ------------------------------------------------------------
  112.  
  113. I am executing:
  114.  
  115.  
  116. $ sudo echo
  117.  
  118.  
  119. to demonstrate how our sudo prompts look
  120.  
  121.  
  122.  
  123. This might look scary, but everything can be undone by running just a
  124.  
  125. few commands. We used to ask you to confirm each time sudo ran, but it
  126.  
  127. was too many times. Instead, I'll just ask you this one time:
  128.  
  129.  
  130. Can we use sudo?
  131.  
  132. [y/n] y
  133.  
  134.  
  135. Yay! Thanks! Let's get going!
  136.  
  137.  
  138. ---- sudo execution ------------------------------------------------------------
  139.  
  140. I am executing:
  141.  
  142.  
  143. $ sudo test -e /var/root/.nix-defexpr
  144.  
  145.  
  146. making sure that /var/root/.nix-defexpr doesn't exist
  147.  
  148.  
  149.  
  150. ---- sudo execution ------------------------------------------------------------
  151.  
  152. I am executing:
  153.  
  154.  
  155. $ sudo test -e /var/root/.nix-channels
  156.  
  157.  
  158. making sure that /var/root/.nix-channels doesn't exist
  159.  
  160.  
  161.  
  162. ---- sudo execution ------------------------------------------------------------
  163.  
  164. I am executing:
  165.  
  166.  
  167. $ sudo test -e /var/root/.nix-profile
  168.  
  169.  
  170. making sure that /var/root/.nix-profile doesn't exist
  171.  
  172.  
  173.  
  174. ---- hardware report -----------------------------------------------------------
  175.  
  176. Cores:
  177. 4
  178.  
  179.  
  180. ---- Nix config report ---------------------------------------------------------
  181.  
  182. Temp Dir:
  183. /var/folders/13/90crxbnj3_q8x_l3gj6thyxw0000gn/T/tmp.XXXXXXXXXX.ZBLALucI
  184.  
  185. Nix Root:
  186. /nix
  187.  
  188. Build Users:
  189. 4
  190.  
  191. Build Group ID:
  192. 30000
  193.  
  194. Build Group Name:
  195. nixbld
  196.  
  197.  
  198. build users:
  199.  
  200. Username:
  201. UID
  202.  
  203. nixbld1:
  204. 30001
  205.  
  206. nixbld2:
  207. 30002
  208.  
  209. nixbld3:
  210. 30003
  211.  
  212. nixbld4:
  213. 30004
  214.  
  215.  
  216. Ready to continue?
  217.  
  218. [y/n] y
  219.  
  220.  
  221.  
  222. ~~> Setting up the build group nixbld
  223.  
  224. Exists:
  225. Yes
  226.  
  227.  
  228. ~~> Setting up the build user nixbld1
  229.  
  230. Exists:
  231. Yes
  232.  
  233. IsHidden:
  234. Yes
  235.  
  236. Logins Disabled:
  237. Yes
  238.  
  239. Member of nixbld:
  240. Yes
  241.  
  242. PrimaryGroupID:
  243. 30000
  244.  
  245.  
  246. ~~> Setting up the build user nixbld2
  247.  
  248. Exists:
  249. Yes
  250.  
  251. IsHidden:
  252. Yes
  253.  
  254. Logins Disabled:
  255. Yes
  256.  
  257. Member of nixbld:
  258. Yes
  259.  
  260. PrimaryGroupID:
  261. 30000
  262.  
  263.  
  264. ~~> Setting up the build user nixbld3
  265.  
  266. Exists:
  267. Yes
  268.  
  269. IsHidden:
  270. Yes
  271.  
  272. Logins Disabled:
  273. Yes
  274.  
  275. Member of nixbld:
  276. Yes
  277.  
  278. PrimaryGroupID:
  279. 30000
  280.  
  281.  
  282. ~~> Setting up the build user nixbld4
  283.  
  284. Exists:
  285. Yes
  286.  
  287. IsHidden:
  288. Yes
  289.  
  290. Logins Disabled:
  291. Yes
  292.  
  293. Member of nixbld:
  294. Yes
  295.  
  296. PrimaryGroupID:
  297. 30000
  298.  
  299.  
  300. ---- sudo execution ------------------------------------------------------------
  301.  
  302. I am executing:
  303.  
  304.  
  305. $ sudo mkdir -pv -m 0755 /nix /nix/var /nix/var/log /nix/var/log/nix /nix/var/log/nix/drvs /nix/var/nix /nix/var/nix/db /nix/var/nix/gcroots /nix/var/nix/profiles /nix/var/nix/temproots /nix/var/nix/userpool
  306.  
  307.  
  308. to make the basic directory structure of Nix (part 1)
  309.  
  310.  
  311.  
  312. ---- sudo execution ------------------------------------------------------------
  313.  
  314. I am executing:
  315.  
  316.  
  317. $ sudo mkdir -pv -m 1777 /nix/var/nix/gcroots/per-user /nix/var/nix/profiles/per-user
  318.  
  319.  
  320. to make the basic directory structure of Nix (part 2)
  321.  
  322.  
  323.  
  324. ---- sudo execution ------------------------------------------------------------
  325.  
  326. I am executing:
  327.  
  328.  
  329. $ sudo mkdir -pv -m 1775 /nix/store
  330.  
  331.  
  332. to make the basic directory structure of Nix (part 3)
  333.  
  334.  
  335.  
  336. ---- sudo execution ------------------------------------------------------------
  337.  
  338. I am executing:
  339.  
  340.  
  341. $ sudo chgrp nixbld /nix/store
  342.  
  343.  
  344. to make the basic directory structure of Nix (part 4)
  345.  
  346.  
  347.  
  348. ---- sudo execution ------------------------------------------------------------
  349.  
  350. I am executing:
  351.  
  352.  
  353. $ sudo mkdir -pv -m 0755 /nix/var/nix/profiles/per-user/root
  354.  
  355.  
  356. to set up the root user's profile (part 1)
  357.  
  358.  
  359.  
  360. ---- sudo execution ------------------------------------------------------------
  361.  
  362. I am executing:
  363.  
  364.  
  365. $ sudo mkdir -pv -m 0700 /var/root/.nix-defexpr
  366.  
  367.  
  368. to set up the root user's profile (part 2)
  369.  
  370.  
  371.  
  372. ---- sudo execution ------------------------------------------------------------
  373.  
  374. I am executing:
  375.  
  376.  
  377. $ sudo mkdir -pv -m 0555 /etc/nix
  378.  
  379.  
  380. to place the default nix daemon configuration (part 1)
  381.  
  382.  
  383.  
  384. ---- sudo execution ------------------------------------------------------------
  385.  
  386. I am executing:
  387.  
  388.  
  389. $ sudo install -m 0664 /var/folders/13/90crxbnj3_q8x_l3gj6thyxw0000gn/T/tmp.XXXXXXXXXX.ZBLALucI/.nix-channels /var/root/.nix-channels
  390.  
  391.  
  392. to set up the default system channel (part 1)
  393.  
  394.  
  395.  
  396. ---- sudo execution ------------------------------------------------------------
  397.  
  398. I am executing:
  399.  
  400.  
  401. $ sudo rsync -rlpt /var/folders/13/90crxbnj3_q8x_l3gj6thyxw0000gn/T/nix-binary-tarball-unpack.XXXXXXXXXX.k5YUYp0Z/unpack/nix-1.11.14-x86_64-darwin/store/ /nix/store/
  402.  
  403.  
  404. to copy the basic Nix files to the new store at /nix/store
  405.  
  406.  
  407.  
  408. ---- oh no! --------------------------------------------------------------------
  409.  
  410. Something went wrong, and I didn't find Nix installed at
  411.  
  412. /nix/store/4j9jacx8mjd4jlj53wvymyhxq7dqyj5d-nix-1.11.14.
  413.  
  414.  
  415. We'd love to help if you need it.
  416.  
  417.  
  418. If you can, open an issue at https://github.com/nixos/nix/issues
  419.  
  420.  
  421. Or feel free to contact the team,
  422.  
  423. - on IRC #nixos on irc.freenode.net
  424.  
  425. - on twitter @nixos_org
  426.  
  427.  
  428. ---- oh no! --------------------------------------------------------------------
  429.  
  430. Jeeze, something went wrong. If you can take all the output and open
  431.  
  432. an issue, we'd love to fix the problem so nobody else has this issue.
  433.  
  434.  
  435. :(
  436.  
  437.  
  438. We'd love to help if you need it.
  439.  
  440.  
  441. If you can, open an issue at https://github.com/nixos/nix/issues
  442.  
  443.  
  444. Or feel free to contact the team,
  445.  
  446. - on IRC #nixos on irc.freenode.net
  447.  
  448. - on twitter @nixos_org
Advertisement
Add Comment
Please, Sign In to add comment