File tree 1 file changed +16
-12
lines changed
1 file changed +16
-12
lines changed Original file line number Diff line number Diff line change 1
1
Install Nix
2
2
===========
3
3
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 >`_:
7
6
8
7
.. code :: bash
9
8
10
- curl -L https://nixos.org/nix/install | sh
9
+ sh <( curl -L https://nixos.org/nix/install) --daemon
11
10
12
- (For security, you may want to `verify the script `_ using our GPG
13
- signatures.)
11
+ .. note ::
14
12
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.
16
17
17
- .. code :: bash
18
+ Verify installation
19
+ -------------------
20
+
21
+ Check that the installation was successful:
18
22
19
- nix-channel --list
23
+ .. code :: bash
20
24
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
23
27
24
- .. _verify the script : %5B%root%%5Ddownload .html#nix-verify-installation
28
+ .. _verify installation script : https://nixos.org/download .html#nix-verify-installation
You can’t perform that action at this time.
0 commit comments