Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.50 KB | None | 0 0
  1. $ ./install --daemon
  2. Note: a multi-user installation is possible. See https://nixos.org/nix/manual/#sect-multi-user-installation
  3. \e[1;31mSwitching to the Daemon-based Installer\e[0m
  4. Welcome to the Multi-User Nix Installation
  5.  
  6. This installation tool will set up your computer with the Nix package
  7. manager. This will happen in a few stages:
  8.  
  9. 1. Make sure your computer doesn't already have Nix. If it does, I
  10. will show you instructions on how to clean up your old one.
  11.  
  12. 2. Show you what we are going to install and where. Then we will ask
  13. if you are ready to continue.
  14.  
  15. 3. Create the system users and groups that the Nix daemon uses to run
  16. builds.
  17.  
  18. 4. Perform the basic installation of the Nix files daemon.
  19.  
  20. 5. Configure your shell to import special Nix Profile files, so you
  21. can use Nix.
  22.  
  23. 6. Start the Nix daemon.
  24.  
  25. Would you like to see a more detailed list of what we will do?
  26. [y/n] y
  27.  
  28.  
  29. We will:
  30.  
  31. - make sure your computer doesn't already have Nix files
  32. (if it does, I will tell you how to clean them up.)
  33. - create local users (see the list above for the users we'll make)
  34. - create a local group (nixbld)
  35. - install Nix in to /nix
  36. - create a configuration file in /etc/nix
  37. - set up the "default profile" by creating some Nix-related files in
  38. /root
  39. - back up /etc/profile.d/nix.sh to /etc/profile.d/nix.sh.backup-before-nix
  40. - update /etc/profile.d/nix.sh to include some Nix configuration
  41. - load and start a service (at /etc/systemd/system/nix-daemon.service
  42. and /etc/systemd/system/nix-daemon.socket) for nix-daemon
  43.  
  44. Ready to continue?
  45. [y/n] y
  46.  
  47.  
  48. ---- let's talk about sudo -----------------------------------------------------
  49. This script is going to call sudo a lot. Every time we do, it'll
  50. output exactly what it'll do, and why.
  51.  
  52. Just like this:
  53.  
  54. ---- sudo execution ------------------------------------------------------------
  55. I am executing:
  56.  
  57. $ sudo echo
  58.  
  59. to demonstrate how our sudo prompts look
  60.  
  61.  
  62. This might look scary, but everything can be undone by running just a
  63. few commands. We used to ask you to confirm each time sudo ran, but it
  64. was too many times. Instead, I'll just ask you this one time:
  65.  
  66. Can we use sudo?
  67. [y/n] y
  68.  
  69. Yay! Thanks! Let's get going!
  70. grep: /etc/profile.d/nix.sh: Permission denied
  71.  
  72. ---- sudo execution ------------------------------------------------------------
  73. I am executing:
  74.  
  75. $ sudo test -e /root/.nix-defexpr
  76.  
  77. making sure that /root/.nix-defexpr doesn't exist
  78.  
  79.  
  80. ---- sudo execution ------------------------------------------------------------
  81. I am executing:
  82.  
  83. $ sudo test -e /root/.nix-channels
  84.  
  85. making sure that /root/.nix-channels doesn't exist
  86.  
  87.  
  88. ---- sudo execution ------------------------------------------------------------
  89. I am executing:
  90.  
  91. $ sudo test -e /root/.nix-profile
  92.  
  93. making sure that /root/.nix-profile doesn't exist
  94.  
  95.  
  96. ---- Nix config report ---------------------------------------------------------
  97. Temp Dir: /tmp/tmp.Jvngz41biP
  98. Nix Root: /nix
  99. Build Users: 32
  100. Build Group ID: 30000
  101. Build Group Name: nixbld
  102.  
  103. build users:
  104. Username: UID
  105. nixbld1: 30001
  106. nixbld2: 30002
  107. nixbld3: 30003
  108. nixbld4: 30004
  109. nixbld5: 30005
  110. nixbld6: 30006
  111. nixbld7: 30007
  112. nixbld8: 30008
  113. nixbld9: 30009
  114. nixbld10: 30010
  115. nixbld11: 30011
  116. nixbld12: 30012
  117. nixbld13: 30013
  118. nixbld14: 30014
  119. nixbld15: 30015
  120. nixbld16: 30016
  121. nixbld17: 30017
  122. nixbld18: 30018
  123. nixbld19: 30019
  124. nixbld20: 30020
  125. nixbld21: 30021
  126. nixbld22: 30022
  127. nixbld23: 30023
  128. nixbld24: 30024
  129. nixbld25: 30025
  130. nixbld26: 30026
  131. nixbld27: 30027
  132. nixbld28: 30028
  133. nixbld29: 30029
  134. nixbld30: 30030
  135. nixbld31: 30031
  136. nixbld32: 30032
  137.  
  138. Ready to continue?
  139. [y/n] y
  140.  
  141.  
  142. ~~> Setting up the build group nixbld
  143. Exists: Yes
  144.  
  145. ~~> Setting up the build user nixbld1
  146. Exists: Yes
  147. Hidden: Yes
  148. Home Directory: /var/empty
  149.  
  150. ---- sudo execution ------------------------------------------------------------
  151. I am executing:
  152.  
  153. $ sudo usermod --comment Nix build user 1 nixbld1
  154.  
  155. in order to give nixbld1 a useful comment
  156.  
  157. usermod: no changes
  158. Note: Nix build user 1
  159. Logins Disabled: Yes
  160. Member of nixbld: Yes
  161. PrimaryGroupID: 30000
  162.  
  163. ~~> Setting up the build user nixbld2
  164. Exists: Yes
  165. Hidden: Yes
  166. Home Directory: /var/empty
  167.  
  168. ---- sudo execution ------------------------------------------------------------
  169. I am executing:
  170.  
  171. $ sudo usermod --comment Nix build user 2 nixbld2
  172.  
  173. in order to give nixbld2 a useful comment
  174.  
  175. usermod: no changes
  176. Note: Nix build user 2
  177. Logins Disabled: Yes
  178. Member of nixbld: Yes
  179. PrimaryGroupID: 30000
  180.  
  181. ~~> Setting up the build user nixbld3
  182. Exists: Yes
  183. Hidden: Yes
  184. Home Directory: /var/empty
  185.  
  186. ---- sudo execution ------------------------------------------------------------
  187. I am executing:
  188.  
  189. $ sudo usermod --comment Nix build user 3 nixbld3
  190.  
  191. in order to give nixbld3 a useful comment
  192.  
  193. usermod: no changes
  194. Note: Nix build user 3
  195. Logins Disabled: Yes
  196. Member of nixbld: Yes
  197. PrimaryGroupID: 30000
  198.  
  199. ~~> Setting up the build user nixbld4
  200. Exists: Yes
  201. Hidden: Yes
  202. Home Directory: /var/empty
  203.  
  204. ---- sudo execution ------------------------------------------------------------
  205. I am executing:
  206.  
  207. $ sudo usermod --comment Nix build user 4 nixbld4
  208.  
  209. in order to give nixbld4 a useful comment
  210.  
  211. usermod: no changes
  212. Note: Nix build user 4
  213. Logins Disabled: Yes
  214. Member of nixbld: Yes
  215. PrimaryGroupID: 30000
  216.  
  217. ~~> Setting up the build user nixbld5
  218. Exists: Yes
  219. Hidden: Yes
  220. Home Directory: /var/empty
  221.  
  222. ---- sudo execution ------------------------------------------------------------
  223. I am executing:
  224.  
  225. $ sudo usermod --comment Nix build user 5 nixbld5
  226.  
  227. in order to give nixbld5 a useful comment
  228.  
  229. usermod: no changes
  230. Note: Nix build user 5
  231. Logins Disabled: Yes
  232. Member of nixbld: Yes
  233. PrimaryGroupID: 30000
  234.  
  235. ~~> Setting up the build user nixbld6
  236. Exists: Yes
  237. Hidden: Yes
  238. Home Directory: /var/empty
  239.  
  240. ---- sudo execution ------------------------------------------------------------
  241. I am executing:
  242.  
  243. $ sudo usermod --comment Nix build user 6 nixbld6
  244.  
  245. in order to give nixbld6 a useful comment
  246.  
  247. usermod: no changes
  248. Note: Nix build user 6
  249. Logins Disabled: Yes
  250. Member of nixbld: Yes
  251. PrimaryGroupID: 30000
  252.  
  253. ~~> Setting up the build user nixbld7
  254. Exists: Yes
  255. Hidden: Yes
  256. Home Directory: /var/empty
  257.  
  258. ---- sudo execution ------------------------------------------------------------
  259. I am executing:
  260.  
  261. $ sudo usermod --comment Nix build user 7 nixbld7
  262.  
  263. in order to give nixbld7 a useful comment
  264.  
  265. usermod: no changes
  266. Note: Nix build user 7
  267. Logins Disabled: Yes
  268. Member of nixbld: Yes
  269. PrimaryGroupID: 30000
  270.  
  271. ~~> Setting up the build user nixbld8
  272. Exists: Yes
  273. Hidden: Yes
  274. Home Directory: /var/empty
  275.  
  276. ---- sudo execution ------------------------------------------------------------
  277. I am executing:
  278.  
  279. $ sudo usermod --comment Nix build user 8 nixbld8
  280.  
  281. in order to give nixbld8 a useful comment
  282.  
  283. usermod: no changes
  284. Note: Nix build user 8
  285. Logins Disabled: Yes
  286. Member of nixbld: Yes
  287. PrimaryGroupID: 30000
  288.  
  289. ~~> Setting up the build user nixbld9
  290. Exists: Yes
  291. Hidden: Yes
  292. Home Directory: /var/empty
  293.  
  294. ---- sudo execution ------------------------------------------------------------
  295. I am executing:
  296.  
  297. $ sudo usermod --comment Nix build user 9 nixbld9
  298.  
  299. in order to give nixbld9 a useful comment
  300.  
  301. usermod: no changes
  302. Note: Nix build user 9
  303. Logins Disabled: Yes
  304. Member of nixbld: Yes
  305. PrimaryGroupID: 30000
  306.  
  307. ~~> Setting up the build user nixbld10
  308. Exists: Yes
  309. Hidden: Yes
  310. Home Directory: /var/empty
  311.  
  312. ---- sudo execution ------------------------------------------------------------
  313. I am executing:
  314.  
  315. $ sudo usermod --comment Nix build user 10 nixbld10
  316.  
  317. in order to give nixbld10 a useful comment
  318.  
  319. usermod: no changes
  320. Note: Nix build user 10
  321. Logins Disabled: Yes
  322. Member of nixbld: Yes
  323. PrimaryGroupID: 30000
  324.  
  325. ~~> Setting up the build user nixbld11
  326. Exists: Yes
  327. Hidden: Yes
  328. Home Directory: /var/empty
  329.  
  330. ---- sudo execution ------------------------------------------------------------
  331. I am executing:
  332.  
  333. $ sudo usermod --comment Nix build user 11 nixbld11
  334.  
  335. in order to give nixbld11 a useful comment
  336.  
  337. usermod: no changes
  338. Note: Nix build user 11
  339. Logins Disabled: Yes
  340. Member of nixbld: Yes
  341. PrimaryGroupID: 30000
  342.  
  343. ~~> Setting up the build user nixbld12
  344. Exists: Yes
  345. Hidden: Yes
  346. Home Directory: /var/empty
  347.  
  348. ---- sudo execution ------------------------------------------------------------
  349. I am executing:
  350.  
  351. $ sudo usermod --comment Nix build user 12 nixbld12
  352.  
  353. in order to give nixbld12 a useful comment
  354.  
  355. usermod: no changes
  356. Note: Nix build user 12
  357. Logins Disabled: Yes
  358. Member of nixbld: Yes
  359. PrimaryGroupID: 30000
  360.  
  361. ~~> Setting up the build user nixbld13
  362. Exists: Yes
  363. Hidden: Yes
  364. Home Directory: /var/empty
  365.  
  366. ---- sudo execution ------------------------------------------------------------
  367. I am executing:
  368.  
  369. $ sudo usermod --comment Nix build user 13 nixbld13
  370.  
  371. in order to give nixbld13 a useful comment
  372.  
  373. usermod: no changes
  374. Note: Nix build user 13
  375. Logins Disabled: Yes
  376. Member of nixbld: Yes
  377. PrimaryGroupID: 30000
  378.  
  379. ~~> Setting up the build user nixbld14
  380. Exists: Yes
  381. Hidden: Yes
  382. Home Directory: /var/empty
  383.  
  384. ---- sudo execution ------------------------------------------------------------
  385. I am executing:
  386.  
  387. $ sudo usermod --comment Nix build user 14 nixbld14
  388.  
  389. in order to give nixbld14 a useful comment
  390.  
  391. usermod: no changes
  392. Note: Nix build user 14
  393. Logins Disabled: Yes
  394. Member of nixbld: Yes
  395. PrimaryGroupID: 30000
  396.  
  397. ~~> Setting up the build user nixbld15
  398. Exists: Yes
  399. Hidden: Yes
  400. Home Directory: /var/empty
  401.  
  402. ---- sudo execution ------------------------------------------------------------
  403. I am executing:
  404.  
  405. $ sudo usermod --comment Nix build user 15 nixbld15
  406.  
  407. in order to give nixbld15 a useful comment
  408.  
  409. usermod: no changes
  410. Note: Nix build user 15
  411. Logins Disabled: Yes
  412. Member of nixbld: Yes
  413. PrimaryGroupID: 30000
  414.  
  415. ~~> Setting up the build user nixbld16
  416. Exists: Yes
  417. Hidden: Yes
  418. Home Directory: /var/empty
  419.  
  420. ---- sudo execution ------------------------------------------------------------
  421. I am executing:
  422.  
  423. $ sudo usermod --comment Nix build user 16 nixbld16
  424.  
  425. in order to give nixbld16 a useful comment
  426.  
  427. usermod: no changes
  428. Note: Nix build user 16
  429. Logins Disabled: Yes
  430. Member of nixbld: Yes
  431. PrimaryGroupID: 30000
  432.  
  433. ~~> Setting up the build user nixbld17
  434. Exists: Yes
  435. Hidden: Yes
  436. Home Directory: /var/empty
  437.  
  438. ---- sudo execution ------------------------------------------------------------
  439. I am executing:
  440.  
  441. $ sudo usermod --comment Nix build user 17 nixbld17
  442.  
  443. in order to give nixbld17 a useful comment
  444.  
  445. usermod: no changes
  446. Note: Nix build user 17
  447. Logins Disabled: Yes
  448. Member of nixbld: Yes
  449. PrimaryGroupID: 30000
  450.  
  451. ~~> Setting up the build user nixbld18
  452. Exists: Yes
  453. Hidden: Yes
  454. Home Directory: /var/empty
  455.  
  456. ---- sudo execution ------------------------------------------------------------
  457. I am executing:
  458.  
  459. $ sudo usermod --comment Nix build user 18 nixbld18
  460.  
  461. in order to give nixbld18 a useful comment
  462.  
  463. usermod: no changes
  464. Note: Nix build user 18
  465. Logins Disabled: Yes
  466. Member of nixbld: Yes
  467. PrimaryGroupID: 30000
  468.  
  469. ~~> Setting up the build user nixbld19
  470. Exists: Yes
  471. Hidden: Yes
  472. Home Directory: /var/empty
  473.  
  474. ---- sudo execution ------------------------------------------------------------
  475. I am executing:
  476.  
  477. $ sudo usermod --comment Nix build user 19 nixbld19
  478.  
  479. in order to give nixbld19 a useful comment
  480.  
  481. usermod: no changes
  482. Note: Nix build user 19
  483. Logins Disabled: Yes
  484. Member of nixbld: Yes
  485. PrimaryGroupID: 30000
  486.  
  487. ~~> Setting up the build user nixbld20
  488. Exists: Yes
  489. Hidden: Yes
  490. Home Directory: /var/empty
  491.  
  492. ---- sudo execution ------------------------------------------------------------
  493. I am executing:
  494.  
  495. $ sudo usermod --comment Nix build user 20 nixbld20
  496.  
  497. in order to give nixbld20 a useful comment
  498.  
  499. usermod: no changes
  500. Note: Nix build user 20
  501. Logins Disabled: Yes
  502. Member of nixbld: Yes
  503. PrimaryGroupID: 30000
  504.  
  505. ~~> Setting up the build user nixbld21
  506. Exists: Yes
  507. Hidden: Yes
  508. Home Directory: /var/empty
  509.  
  510. ---- sudo execution ------------------------------------------------------------
  511. I am executing:
  512.  
  513. $ sudo usermod --comment Nix build user 21 nixbld21
  514.  
  515. in order to give nixbld21 a useful comment
  516.  
  517. usermod: no changes
  518. Note: Nix build user 21
  519. Logins Disabled: Yes
  520. Member of nixbld: Yes
  521. PrimaryGroupID: 30000
  522.  
  523. ~~> Setting up the build user nixbld22
  524. Exists: Yes
  525. Hidden: Yes
  526. Home Directory: /var/empty
  527.  
  528. ---- sudo execution ------------------------------------------------------------
  529. I am executing:
  530.  
  531. $ sudo usermod --comment Nix build user 22 nixbld22
  532.  
  533. in order to give nixbld22 a useful comment
  534.  
  535. usermod: no changes
  536. Note: Nix build user 22
  537. Logins Disabled: Yes
  538. Member of nixbld: Yes
  539. PrimaryGroupID: 30000
  540.  
  541. ~~> Setting up the build user nixbld23
  542. Exists: Yes
  543. Hidden: Yes
  544. Home Directory: /var/empty
  545.  
  546. ---- sudo execution ------------------------------------------------------------
  547. I am executing:
  548.  
  549. $ sudo usermod --comment Nix build user 23 nixbld23
  550.  
  551. in order to give nixbld23 a useful comment
  552.  
  553. usermod: no changes
  554. Note: Nix build user 23
  555. Logins Disabled: Yes
  556. Member of nixbld: Yes
  557. PrimaryGroupID: 30000
  558.  
  559. ~~> Setting up the build user nixbld24
  560. Exists: Yes
  561. Hidden: Yes
  562. Home Directory: /var/empty
  563.  
  564. ---- sudo execution ------------------------------------------------------------
  565. I am executing:
  566.  
  567. $ sudo usermod --comment Nix build user 24 nixbld24
  568.  
  569. in order to give nixbld24 a useful comment
  570.  
  571. usermod: no changes
  572. Note: Nix build user 24
  573. Logins Disabled: Yes
  574. Member of nixbld: Yes
  575. PrimaryGroupID: 30000
  576.  
  577. ~~> Setting up the build user nixbld25
  578. Exists: Yes
  579. Hidden: Yes
  580. Home Directory: /var/empty
  581.  
  582. ---- sudo execution ------------------------------------------------------------
  583. I am executing:
  584.  
  585. $ sudo usermod --comment Nix build user 25 nixbld25
  586.  
  587. in order to give nixbld25 a useful comment
  588.  
  589. usermod: no changes
  590. Note: Nix build user 25
  591. Logins Disabled: Yes
  592. Member of nixbld: Yes
  593. PrimaryGroupID: 30000
  594.  
  595. ~~> Setting up the build user nixbld26
  596. Exists: Yes
  597. Hidden: Yes
  598. Home Directory: /var/empty
  599.  
  600. ---- sudo execution ------------------------------------------------------------
  601. I am executing:
  602.  
  603. $ sudo usermod --comment Nix build user 26 nixbld26
  604.  
  605. in order to give nixbld26 a useful comment
  606.  
  607. usermod: no changes
  608. Note: Nix build user 26
  609. Logins Disabled: Yes
  610. Member of nixbld: Yes
  611. PrimaryGroupID: 30000
  612.  
  613. ~~> Setting up the build user nixbld27
  614. Exists: Yes
  615. Hidden: Yes
  616. Home Directory: /var/empty
  617.  
  618. ---- sudo execution ------------------------------------------------------------
  619. I am executing:
  620.  
  621. $ sudo usermod --comment Nix build user 27 nixbld27
  622.  
  623. in order to give nixbld27 a useful comment
  624.  
  625. usermod: no changes
  626. Note: Nix build user 27
  627. Logins Disabled: Yes
  628. Member of nixbld: Yes
  629. PrimaryGroupID: 30000
  630.  
  631. ~~> Setting up the build user nixbld28
  632. Exists: Yes
  633. Hidden: Yes
  634. Home Directory: /var/empty
  635.  
  636. ---- sudo execution ------------------------------------------------------------
  637. I am executing:
  638.  
  639. $ sudo usermod --comment Nix build user 28 nixbld28
  640.  
  641. in order to give nixbld28 a useful comment
  642.  
  643. usermod: no changes
  644. Note: Nix build user 28
  645. Logins Disabled: Yes
  646. Member of nixbld: Yes
  647. PrimaryGroupID: 30000
  648.  
  649. ~~> Setting up the build user nixbld29
  650. Exists: Yes
  651. Hidden: Yes
  652. Home Directory: /var/empty
  653.  
  654. ---- sudo execution ------------------------------------------------------------
  655. I am executing:
  656.  
  657. $ sudo usermod --comment Nix build user 29 nixbld29
  658.  
  659. in order to give nixbld29 a useful comment
  660.  
  661. usermod: no changes
  662. Note: Nix build user 29
  663. Logins Disabled: Yes
  664. Member of nixbld: Yes
  665. PrimaryGroupID: 30000
  666.  
  667. ~~> Setting up the build user nixbld30
  668. Exists: Yes
  669. Hidden: Yes
  670. Home Directory: /var/empty
  671.  
  672. ---- sudo execution ------------------------------------------------------------
  673. I am executing:
  674.  
  675. $ sudo usermod --comment Nix build user 30 nixbld30
  676.  
  677. in order to give nixbld30 a useful comment
  678.  
  679. usermod: no changes
  680. Note: Nix build user 30
  681. Logins Disabled: Yes
  682. Member of nixbld: Yes
  683. PrimaryGroupID: 30000
  684.  
  685. ~~> Setting up the build user nixbld31
  686. Exists: Yes
  687. Hidden: Yes
  688. Home Directory: /var/empty
  689.  
  690. ---- sudo execution ------------------------------------------------------------
  691. I am executing:
  692.  
  693. $ sudo usermod --comment Nix build user 31 nixbld31
  694.  
  695. in order to give nixbld31 a useful comment
  696.  
  697. usermod: no changes
  698. Note: Nix build user 31
  699. Logins Disabled: Yes
  700. Member of nixbld: Yes
  701. PrimaryGroupID: 30000
  702.  
  703. ~~> Setting up the build user nixbld32
  704. Exists: Yes
  705. Hidden: Yes
  706. Home Directory: /var/empty
  707.  
  708. ---- sudo execution ------------------------------------------------------------
  709. I am executing:
  710.  
  711. $ sudo usermod --comment Nix build user 32 nixbld32
  712.  
  713. in order to give nixbld32 a useful comment
  714.  
  715. usermod: no changes
  716. Note: Nix build user 32
  717. Logins Disabled: Yes
  718. Member of nixbld: Yes
  719. PrimaryGroupID: 30000
  720.  
  721. ---- sudo execution ------------------------------------------------------------
  722. I am executing:
  723.  
  724. $ 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
  725.  
  726. to make the basic directory structure of Nix (part 1)
  727.  
  728. mkdir: created directory '/nix'
  729. mkdir: created directory '/nix/var'
  730. mkdir: created directory '/nix/var/log'
  731. mkdir: created directory '/nix/var/log/nix'
  732. mkdir: created directory '/nix/var/log/nix/drvs'
  733. mkdir: created directory '/nix/var/nix'
  734. mkdir: created directory '/nix/var/nix/db'
  735. mkdir: created directory '/nix/var/nix/gcroots'
  736. mkdir: created directory '/nix/var/nix/profiles'
  737. mkdir: created directory '/nix/var/nix/temproots'
  738. mkdir: created directory '/nix/var/nix/userpool'
  739.  
  740. ---- sudo execution ------------------------------------------------------------
  741. I am executing:
  742.  
  743. $ sudo mkdir -pv -m 1777 /nix/var/nix/gcroots/per-user /nix/var/nix/profiles/per-user
  744.  
  745. to make the basic directory structure of Nix (part 2)
  746.  
  747. mkdir: created directory '/nix/var/nix/gcroots/per-user'
  748. mkdir: created directory '/nix/var/nix/profiles/per-user'
  749.  
  750. ---- sudo execution ------------------------------------------------------------
  751. I am executing:
  752.  
  753. $ sudo mkdir -pv -m 1775 /nix/store
  754.  
  755. to make the basic directory structure of Nix (part 3)
  756.  
  757. mkdir: created directory '/nix/store'
  758.  
  759. ---- sudo execution ------------------------------------------------------------
  760. I am executing:
  761.  
  762. $ sudo chgrp nixbld /nix/store
  763.  
  764. to make the basic directory structure of Nix (part 4)
  765.  
  766.  
  767. ---- sudo execution ------------------------------------------------------------
  768. I am executing:
  769.  
  770. $ sudo mkdir -pv -m 0755 /nix/var/nix/profiles/per-user/root
  771.  
  772. to set up the root user's profile (part 1)
  773.  
  774. mkdir: created directory '/nix/var/nix/profiles/per-user/root'
  775.  
  776. ---- sudo execution ------------------------------------------------------------
  777. I am executing:
  778.  
  779. $ sudo mkdir -pv -m 0700 /root/.nix-defexpr
  780.  
  781. to set up the root user's profile (part 2)
  782.  
  783. mkdir: created directory '/root/.nix-defexpr'
  784.  
  785. ---- sudo execution ------------------------------------------------------------
  786. I am executing:
  787.  
  788. $ sudo mkdir -pv -m 0555 /etc/nix
  789.  
  790. to place the default nix daemon configuration (part 1)
  791.  
  792. mkdir: created directory '/etc/nix'
  793.  
  794. ---- sudo execution ------------------------------------------------------------
  795. I am executing:
  796.  
  797. $ sudo install -m 0664 /tmp/tmp.Jvngz41biP/.nix-channels /root/.nix-channels
  798.  
  799. to set up the default system channel (part 1)
  800.  
  801.  
  802. ---- sudo execution ------------------------------------------------------------
  803. I am executing:
  804.  
  805. $ sudo rsync -rlpt ./store/07cvl3wrpwx5vgw6w5q2avn39qad8yp6-libatomic_ops-7.6.4 ./store/3kzrxhyp633qm4w532jd2qjv8rfvgjhx-bzip2-1.0.6.0.1-bin ./store/3s920c43pgzi6vdabjs90in308jnbckv-zlib-1.2.11 ./store/5dwhxf03d9lsmkpfjjrhvm0c1k15v1qi-libsodium-1.0.16 ./store/68z2cvbzws1pn0z8dhgfkmws75r2z7gm-coreutils-8.29 ./store/7gx4kiv5m0i7d7qkixq2cwzbr10lvxwc-glibc-2.27 ./store/878k17l717kg46zi5mzlkj2i9jl13z7m-boehm-gc-7.6.6 ./store/ah8z1r2iim5dz9gzg530xihjh6417shq-xz-5.2.4 ./store/b9p787yqaqi313l9rr0491igjwyzqfmw-bash-4.4-p23 ./store/bp9i6x5f3hvh2qh049ffsihslz1kf45m-libkrb5-1.15.2 ./store/d8wjq00p656k6r9d2dzgsy2pgfcq4f6p-libssh2-1.8.1 ./store/di0sc0zjv6chdmbahifi88zm29j550x0-keyutils-1.5.10-lib ./store/hbhdjn5ik3byg642d1m11k3k3s0kn3py-nix-2.2.2 ./store/ljfcm34fyc7lmanabr7234lzq0kphx7f-editline-1.15.3 ./store/m1fzwxsz41m0wdsc3cbzci0ikkf25g9c-brotli-1.0.5-lib ./store/mvkp369654qs0k40n2apd7zfaqw0kvy2-bzip2-1.0.6.0.1 ./store/n0cblhvs1b5vgpiq282ypwk84kch719w-curl-7.64.0 ./store/n8v50b5qczjvsa5hgl41iccqk51xh2r0-xz-5.2.4-bin ./store/n9w6xkk15nkpslvzhwrpi90pv3kkdal6-gnutar-1.30 ./store/nphkncwpw9l39rcn4yj08yqzm681dg2p-attr-2.4.47 ./store/p1n5m7xp9b3pxs30ry5anzq4ql7zxmly-gzip-1.9 ./store/pk7g0dbrz5yi53ywssc3b316l5zp1wzi-busybox-1.29.3 ./store/qh3pn6d1a6m31kb385pzi7vagwcbwayq-gcc-7.3.0-lib ./store/qlp3gx3zyqryj0kq2ngrwfcpv9k7rrg8-aws-sdk-cpp-1.5.17 ./store/r5fswdfnwdzy8cf996hqnrrxvwm48qhv-sqlite-3.26.0 ./store/rb2z41k2rnq7abzklsbi457wd3hg242y-acl-2.2.52 ./store/rikxx4wdaj7b4qp1lizzmn7884hh537k-nss-cacert-3.42 ./store/rv9ciim9n00jiylb17j1w3wn1nsrz88m-nghttp2-1.32.0-lib ./store/x36nlm3ndxfhnli8c8y3ydh78cpzpf09-openssl-1.0.2r ./store/y0d2h6csi3ai7b2a3nkx7m8nq10i0hk1-libseccomp-2.3.3-lib /nix/store/
  806.  
  807. to copy the basic Nix files to the new store at /nix/store
  808.  
  809. Alright! We have our first nix at /nix/store/hbhdjn5ik3byg642d1m11k3k3s0kn3py-nix-2.2.2
  810.  
  811. ---- sudo execution ------------------------------------------------------------
  812. I am executing:
  813.  
  814. $ sudo /nix/store/hbhdjn5ik3byg642d1m11k3k3s0kn3py-nix-2.2.2/bin/nix-store --init
  815.  
  816. to initialize the Nix Database
  817.  
  818.  
  819. ---- sudo execution ------------------------------------------------------------
  820. I am executing:
  821.  
  822. $ sudo /nix/store/hbhdjn5ik3byg642d1m11k3k3s0kn3py-nix-2.2.2/bin/nix-store --load-db
  823.  
  824. to load data for the first time in to the Nix Database
  825.  
  826. Just finished getting the nix database ready.
  827.  
  828. ---- sudo execution ------------------------------------------------------------
  829. I am executing:
  830.  
  831. $ sudo touch /etc/profile.d/nix.sh
  832.  
  833. create a stub /etc/profile.d/nix.sh which will be updated
  834.  
  835.  
  836. ---- sudo execution ------------------------------------------------------------
  837. I am executing:
  838.  
  839. $ sudo cp /etc/profile.d/nix.sh /etc/profile.d/nix.sh.backup-before-nix
  840.  
  841. to back up your current /etc/profile.d/nix.sh to /etc/profile.d/nix.sh.backup-before-nix
  842.  
  843.  
  844. ---- sudo execution ------------------------------------------------------------
  845. I am executing:
  846.  
  847. $ sudo tee -a /etc/profile.d/nix.sh
  848.  
  849. extend your /etc/profile.d/nix.sh with nix-daemon settings
  850.  
  851.  
  852. # Nix
  853. if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
  854. . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
  855. fi
  856. # End Nix
  857.  
  858.  
  859. ---- sudo execution ------------------------------------------------------------
  860. I am executing:
  861.  
  862. $ sudo HOME=/root /nix/store/hbhdjn5ik3byg642d1m11k3k3s0kn3py-nix-2.2.2/bin/nix-env -i /nix/store/hbhdjn5ik3byg642d1m11k3k3s0kn3py-nix-2.2.2
  863.  
  864. to installing a bootstrapping Nix in to the default Profile
  865.  
  866. installing 'nix-2.2.2'
  867. building '/nix/store/2c4l83wkdfrj7ra9k07l0aqvym1d5z20-user-environment.drv'...
  868. error: opening directory '/nix/store/hbhdjn5ik3byg642d1m11k3k3s0kn3py-nix-2.2.2': Permission denied
  869. builder for '/nix/store/2c4l83wkdfrj7ra9k07l0aqvym1d5z20-user-environment.drv' failed with exit code 1
  870. error: build of '/nix/store/2c4l83wkdfrj7ra9k07l0aqvym1d5z20-user-environment.drv' failed
  871.  
  872. ---- oh no! --------------------------------------------------------------------
  873. Jeeze, something went wrong. If you can take all the output and open
  874. an issue, we'd love to fix the problem so nobody else has this issue.
  875.  
  876. :(
  877.  
  878. We'd love to help if you need it.
  879.  
  880. If you can, open an issue at https://github.com/nixos/nix/issues
  881.  
  882. Or feel free to contact the team,
  883. - on IRC #nixos on irc.freenode.net
  884. - on twitter @nixos_org
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement