diff --git a/docker.nix b/docker.nix index 619e75c54..9dbc34d61 100644 --- a/docker.nix +++ b/docker.nix @@ -281,7 +281,10 @@ let # may get replaced by pkgs.dockerTools.caCertificates mkdir -p $out/etc/ssl/certs + # Old NixOS compatibility. ln -s /nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt $out/etc/ssl/certs + # NixOS canonical location + ln -s /nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt $out/etc/ssl/certs/ca-certificates.crt cat $passwdContentsPath > $out/etc/passwd echo "" >> $out/etc/passwd