on iko/ghcjs-patch-master help sign in
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

commit0c3689b02859b50c8775cd5a1d75d799809b49a7 authorBill Ewanick <bill@ewanick.com> dateMon 18 Jan 2021, 20:39 (6 years ago) parent06a67e6
1 file changed+12
docs/tutorials/getting-started.md+12
docs/tutorials/getting-started.md+12
@@ -21,6 +21,18 @@ trusted-public-keys = [...] hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNG
2121substituters = [...] 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+
2436This 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