Updates Nix installation guidelines for NixOS users. (#991)
This commit is contained in:
parent
00f7478759
commit
326626016a
12
README.md
12
README.md
|
@ -121,7 +121,7 @@ of time so that you don't have to build as many dependencies from scratch the
|
|||
first time.
|
||||
|
||||
If your operating system is NixOS then you can add the cache using these NixOS
|
||||
configuration options:
|
||||
configuration options to access dhall packages from your declarative configuration file:
|
||||
|
||||
```nix
|
||||
nix = {
|
||||
|
@ -133,16 +133,18 @@ configuration options:
|
|||
};
|
||||
```
|
||||
|
||||
If you don't use NixOS but you do use Nix 2.0 or later, then set these options
|
||||
in your `/etc/nix/nix.conf` file:
|
||||
If you want to install these packages imperatively using `nix-env`,
|
||||
regardless of whether you use NixOS, set the following options in your
|
||||
`/etc/nix/nix.conf` file.
|
||||
|
||||
Using Nix 2.0 or later:
|
||||
|
||||
```
|
||||
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= cache.dhall-lang.org:I9/H18WHd60olG5GsIjolp7CtepSgJmM2CsO813VTmM=
|
||||
substituters = https://cache.nixos.org https://cache.dhall-lang.org
|
||||
```
|
||||
|
||||
If you use an older version of Nix (i.e. Nix `1.*`) then use these options
|
||||
instead:
|
||||
Using earlier Nix versions (i.e. Nix `1.*`):
|
||||
|
||||
```
|
||||
binary-cache-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= cache.dhall-lang.org:I9/H18WHd60olG5GsIjolp7CtepSgJmM2CsO813VTmM=
|
||||
|
|
Loading…
Reference in New Issue