Skip to content

Commit 0c3689b

Browse files
authored
Update Getting Started for NixOS users (#998)
* Update getting started for NixOS users Based on the file that writes nix.conf, and visual inspection, these settings update the nix.conf on NixOS as specified. * Better tutorial structure responding to feedback
1 parent 06a67e6 commit 0c3689b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/tutorials/getting-started.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,18 @@ trusted-public-keys = [...] hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNG
2121
substituters = [...] https://hydra.iohk.io [...]
2222
```
2323

24+
If you're running NixOS, you need to add/update the following in your `/etc/nixos/configuration.nix` files instead.
25+
26+
```
27+
# Binary Cache for Haskell.nix
28+
nix.binaryCachePublicKeys = [
29+
"hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
30+
];
31+
nix.binaryCaches = [
32+
"https://hydra.iohk.io"
33+
];
34+
```
35+
2436
This can be tricky to get setup properly. If you're still having trouble getting cache hits, consult the corresponding [troubleshooting section](../reference/troubleshooting#why-am-i-building-ghc).
2537

2638
## Scaffolding

0 commit comments

Comments
 (0)