mirror of
https://github.com/NixOS/nix.dev.git
synced 2024-10-18 14:32:43 -04:00
Use a pipe for all install commands
This commit is contained in:
parent
4965408021
commit
be05bdef94
|
@ -7,67 +7,43 @@
|
||||||
Install Nix via the recommended [multi-user installation]:
|
Install Nix via the recommended [multi-user installation]:
|
||||||
|
|
||||||
```shell-session
|
```shell-session
|
||||||
$ sh <(curl -L https://nixos.org/nix/install) --daemon
|
$ curl -L https://nixos.org/nix/install | sh -s -- --daemon
|
||||||
```
|
```
|
||||||
|
|
||||||
:::{note}
|
:::{note}
|
||||||
For security you may want to [verify the installation script] using GPG signatures.
|
For security you may want to [verify the installation script] using GPG signatures.
|
||||||
:::
|
:::
|
||||||
|
|
||||||
:::{note}
|
|
||||||
If using [fish shell](https://fishshell.com/) there is different syntax for process substitution:
|
|
||||||
|
|
||||||
```fish
|
|
||||||
$ sh (curl -L https://nixos.org/nix/install | psub) --daemon
|
|
||||||
```
|
|
||||||
:::
|
|
||||||
|
|
||||||
## macOS
|
## macOS
|
||||||
|
|
||||||
Install Nix via the recommended [multi-user installation]:
|
Install Nix via the recommended [multi-user installation]:
|
||||||
|
|
||||||
```shell-session
|
```shell-session
|
||||||
$ sh <(curl -L https://nixos.org/nix/install)
|
$ curl -L https://nixos.org/nix/install | sh
|
||||||
```
|
```
|
||||||
|
|
||||||
:::{note}
|
:::{note}
|
||||||
For security you may want to [verify the installation script] using GPG signatures.
|
For security you may want to [verify the installation script] using GPG signatures.
|
||||||
:::
|
:::
|
||||||
|
|
||||||
:::{note}
|
|
||||||
If using [fish shell](https://fishshell.com/) there is different syntax for process substitution:
|
|
||||||
|
|
||||||
```fish
|
|
||||||
$ sh (curl -L https://nixos.org/nix/install | psub)
|
|
||||||
```
|
|
||||||
:::
|
|
||||||
|
|
||||||
## Windows (WSL2)
|
## Windows (WSL2)
|
||||||
|
|
||||||
Install Nix via the recommended [single-user installation]:
|
Install Nix via the recommended [single-user installation]:
|
||||||
|
|
||||||
```shell-session
|
```shell-session
|
||||||
$ sh <(curl -L https://nixos.org/nix/install) --no-daemon
|
$ curl -L https://nixos.org/nix/install | sh -s -- --no-daemon
|
||||||
```
|
```
|
||||||
|
|
||||||
However, if you have [systemd support] enabled, install Nix via the recommended [multi-user installation]:
|
However, if you have [systemd support] enabled, install Nix via the recommended [multi-user installation]:
|
||||||
|
|
||||||
```shell-session
|
```shell-session
|
||||||
$ sh <(curl -L https://nixos.org/nix/install) --daemon
|
$ curl -L https://nixos.org/nix/install | sh -s -- --daemon
|
||||||
```
|
```
|
||||||
|
|
||||||
:::{note}
|
:::{note}
|
||||||
For security you may want to [verify the installation script] using GPG signatures.
|
For security you may want to [verify the installation script] using GPG signatures.
|
||||||
:::
|
:::
|
||||||
|
|
||||||
:::{note}
|
|
||||||
If using [fish shell](https://fishshell.com/) there is different syntax for process substitution:
|
|
||||||
|
|
||||||
```fish
|
|
||||||
$ sh (curl -L https://nixos.org/nix/install | psub) --daemon
|
|
||||||
```
|
|
||||||
:::
|
|
||||||
|
|
||||||
[systemd support]: https://learn.microsoft.com/en-us/windows/wsl/wsl-config#systemd-support
|
[systemd support]: https://learn.microsoft.com/en-us/windows/wsl/wsl-config#systemd-support
|
||||||
|
|
||||||
## Docker
|
## Docker
|
||||||
|
|
Loading…
Reference in a new issue