Skip to content

Commit b1661f0

Browse files
authored
Update cache server in docs to cache.iog.io (#1481)
1 parent 0d71f9a commit b1661f0

File tree

3 files changed

+53
-5
lines changed

3 files changed

+53
-5
lines changed

docs/tutorials/getting-started-flakes.md

+25-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,31 @@ You need to add the following sections to `/etc/nix/nix.conf` or, if you are a t
2222

2323
```
2424
trusted-public-keys = [...] hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= [...]
25-
substituters = [...] https://hydra.iohk.io [...]
25+
substituters = [...] https://cache.iog.io [...]
26+
```
27+
28+
If you're running NixOS, you need to add/update the following in your `/etc/nixos/configuration.nix` files instead.
29+
30+
```
31+
# Binary Cache for Haskell.nix
32+
nix.settings.trusted-public-keys = [
33+
"hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
34+
];
35+
nix.settings.substituters = [
36+
"https://cache.iog.io"
37+
];
38+
```
39+
40+
NixOS-21.11 and older use slightly different settings.
41+
42+
```
43+
# Binary Cache for Haskell.nix
44+
nix.binaryCachePublicKeys = [
45+
"hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
46+
];
47+
nix.binaryCaches = [
48+
"https://cache.iog.io"
49+
];
2650
```
2751

2852
This can be tricky to get setup properly. If you're still having trouble getting cache hits, consult the corresponding [troubleshooting section](../troubleshooting.md#why-am-i-building-ghc).

docs/tutorials/getting-started-hix.md

+25-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,31 @@ You need to add the following sections to `/etc/nix/nix.conf` or, if you are a t
2929

3030
```
3131
trusted-public-keys = [...] hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= [...]
32-
substituters = [...] https://hydra.iohk.io [...]
32+
substituters = [...] https://cache.iog.io [...]
33+
```
34+
35+
If you're running NixOS, you need to add/update the following in your `/etc/nixos/configuration.nix` files instead.
36+
37+
```
38+
# Binary Cache for Haskell.nix
39+
nix.settings.trusted-public-keys = [
40+
"hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
41+
];
42+
nix.settings.substituters = [
43+
"https://cache.iog.io"
44+
];
45+
```
46+
47+
NixOS-21.11 and older use slightly different settings.
48+
49+
```
50+
# Binary Cache for Haskell.nix
51+
nix.binaryCachePublicKeys = [
52+
"hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
53+
];
54+
nix.binaryCaches = [
55+
"https://cache.iog.io"
56+
];
3357
```
3458

3559
This can be tricky to get setup properly. If you're still having trouble getting cache hits, consult the corresponding [troubleshooting section](../troubleshooting.md#why-am-i-building-ghc).

docs/tutorials/getting-started.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ You need to add the following sections to `/etc/nix/nix.conf` or, if you are a t
1818

1919
```
2020
trusted-public-keys = [...] hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= [...]
21-
substituters = [...] https://hydra.iohk.io [...]
21+
substituters = [...] https://cache.iog.io [...]
2222
```
2323

2424
If you're running NixOS, you need to add/update the following in your `/etc/nixos/configuration.nix` files instead.
@@ -29,7 +29,7 @@ nix.settings.trusted-public-keys = [
2929
"hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
3030
];
3131
nix.settings.substituters = [
32-
"https://hydra.iohk.io"
32+
"https://cache.iog.io"
3333
];
3434
```
3535

@@ -41,7 +41,7 @@ nix.binaryCachePublicKeys = [
4141
"hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
4242
];
4343
nix.binaryCaches = [
44-
"https://hydra.iohk.io"
44+
"https://cache.iog.io"
4545
];
4646
```
4747

0 commit comments

Comments
 (0)