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

Update faq.md

Fix NixOS 22.05+ instructions because they refered to `turstedBinaryCaches` which does not exist anymore.
This commit is contained in:
Julian Stecklina 2023-01-18 12:15:33 +01:00 committed by GitHub
parent 14a133cc2a
commit a0dfa01349
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,12 +8,12 @@ Pass `--option substitute false` to Nix commands.
### How do I add a new binary cache?
Using NixOS unstable (≥ 22.05):
Using NixOS (≥ 22.05):
```nix
nix.settings = {
trusted-substituters = [ "https://cache.nixos.org" "https://hydra.snabb.co" ];
substituters = trustedBinaryCaches;
substituters = [ "https://cache.nixos.org" "https://hydra.snabb.co" ];
trusted-public-keys = [ "hydra.snabb.co-1:zPzKSJ1mynGtYEVbUR0QVZf9TLcaygz/OyzHlWo5AMM=" ];
};
```
@ -23,7 +23,7 @@ Using NixOS (≤ 21.11):
```nix
nix = {
trustedBinaryCaches = [ "https://cache.nixos.org" "https://hydra.snabb.co" ];
binaryCaches = trustedBinaryCaches;
binaryCaches = [ "https://cache.nixos.org" "https://hydra.snabb.co" ];
binaryCachePublicKeys = [ "hydra.snabb.co-1:zPzKSJ1mynGtYEVbUR0QVZf9TLcaygz/OyzHlWo5AMM=" ];
};
```