Skip to content

Commit a26aefd

Browse files
committed
doc: mention SYSTEM_CERTIFICATE_PATH for docker image
1 parent 4b7cbf5 commit a26aefd

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

doc/howto/direnv.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ slug: direnv
88

99
## Starship
1010

11-
It is recommended to use [starship](https://starship.rs/) along with nix-direnv, because it gives a visual indication of the current environment. For example, if you are in a `nix develop` shell, your terminal prompt to change to something like this:
11+
It is recommended to use [starship](https://starship.rs/) along with nix-direnv, because it gives a visual indication of the current environment. For example, if you are in a `nix develop` shell, your terminal prompt automatically changes to something like this:
1212

1313
```sh
14-
srid on appreciate haskell-template on  master [!] via λ 9.2.6 via ❄️ impure (ghc-shell-for-haskell-template-0.1.0.0-0-env)
14+
srid on nixos haskell-template on  master [!] via λ 9.2.6 via ❄️ impure (ghc-shell-for-haskell-template-0.1.0.0-0-env)
1515
1616
```
1717

doc/howto/docker.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,17 @@ If you want to tag the images with the commit id of the working copy:
105105
106106
### SSL certs
107107
108-
In order to be able to make https connections from inside of the docker image, you must expose the cacert Nix package via an environment variable:
108+
In order to be able to make https connections from inside of the docker image, you must expose the cacert Nix package via the relevant environment variable:
109109
110110
```nix
111111
{
112112
# Inside dockerTools.buildImage
113113
config = {
114-
Env = [ "SSL_CERT_FILE=${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt" ];
114+
Env = [
115+
"SSL_CERT_FILE=${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"
116+
# Ref: https://hackage.haskell.org/package/x509-system-1.6.7/docs/src/System.X509.Unix.html#getSystemCertificateStore
117+
"SYSTEM_CERTIFICATE_PATH=${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"
118+
];
115119
};
116120
}
117121
```

0 commit comments

Comments
 (0)