1
0
Fork 0
mirror of https://github.com/NixOS/nix.dev.git synced 2024-10-18 14:32:43 -04:00
nix.dev/source/tutorials/install-nix.rst

28 lines
641 B
ReStructuredText
Raw Normal View History

.. _install-nix:
2020-05-18 04:52:41 -04:00
Install Nix
===========
2020-05-19 06:34:39 -04:00
Install Nix on **any Linux distribution**, **MacOS** and **Windows (via WSL)**
2020-11-18 07:35:11 -05:00
via the recommended `multi-user installation <https://nixos.org/manual/nix/stable/#chap-installation>`_:
2020-05-18 04:52:41 -04:00
2020-05-18 05:41:12 -04:00
.. code:: bash
2020-05-18 04:52:41 -04:00
2020-05-19 06:34:39 -04:00
sh <(curl -L https://nixos.org/nix/install) --daemon
2020-05-18 04:52:41 -04:00
.. note::
2020-05-18 04:52:41 -04:00
2020-12-09 23:56:18 -05:00
For security you may want to `verify the installation script`_ using GPG signatures.
2020-05-18 04:52:41 -04:00
2020-05-19 06:34:39 -04:00
Verify installation
-------------------
Check that the installation was successful:
2020-05-18 04:52:41 -04:00
2020-05-19 06:34:39 -04:00
.. code:: bash
2020-05-18 04:52:41 -04:00
2020-05-19 06:34:39 -04:00
$ nix-env --version
2020-06-18 04:36:42 -04:00
nix-env (Nix) 2.3.6
2020-05-18 04:52:41 -04:00
2020-12-09 23:56:18 -05:00
.. _verify the installation script: https://nixos.org/download.html#nix-verify-installation