Skip to content

Commit e5bf321

Browse files
authored
Merge pull request NixOS#12 from domenkozar/install-nix
Nix installation tutorial
2 parents d7517a8 + 27b14d7 commit e5bf321

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

source/tutorials/install-nix.rst

+16-12
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,28 @@
11
Install Nix
22
===========
33

4-
While NixOS is a Linux distribution based on Nix, you can install Nix on
5-
other Linux distributions, MacOS and Windows via WSL using the install
6-
script from our website:
4+
Install Nix on **any Linux distribution**, **MacOS** and **Windows (via WSL)**
5+
via the recommended `multi-user installation <https://nixos.org/nix/manual/#chap-installation>`_:
76

87
.. code:: bash
98
10-
curl -L https://nixos.org/nix/install | sh
9+
sh <(curl -L https://nixos.org/nix/install) --daemon
1110
12-
(For security, you may want to `verify the script`_ using our GPG
13-
signatures.)
11+
.. note::
1412

15-
Check that the installation was successful by running
13+
Due to `MacOS Catalina read-only system volume <https://github.com/NixOS/nix/issues/2925>`_,
14+
there are extra installation steps by running `create-darwin-volume.sh <https://github.com/NixOS/nix/pull/3212>`_
15+
16+
For security you may want to `verify installation script`_ using GPG signatures.
1617

17-
.. code:: bash
18+
Verify installation
19+
-------------------
20+
21+
Check that the installation was successful:
1822

19-
nix-channel --list
23+
.. code:: bash
2024
21-
This command displays the package distribution channel used by Nix. By
22-
default, this is ``https://nixos.org/channels/nixpkgs-unstable``
25+
$ nix-env --version
26+
nix-env (Nix) 2.3.4
2327
24-
.. _verify the script: %5B%root%%5Ddownload.html#nix-verify-installation
28+
.. _verify installation script: https://nixos.org/download.html#nix-verify-installation

0 commit comments

Comments
 (0)