We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c9a3101 + 23f07fa commit cac1168Copy full SHA for cac1168
scripts/nix-profile.fish.in
@@ -53,6 +53,13 @@ else if test -e "$NIX_LINK/etc/ssl/certs/ca-bundle.crt" # fall back to cacert in
53
set --export NIX_SSL_CERT_FILE "$NIX_LINK/etc/ssl/certs/ca-bundle.crt"
54
else if test -e "$NIX_LINK/etc/ca-bundle.crt" # old cacert in Nix profile
55
set --export NIX_SSL_CERT_FILE "$NIX_LINK/etc/ca-bundle.crt"
56
+else
57
+ # Fall back to what is in the nix profiles, favouring whatever is defined last.
58
+ for i in (string split ' ' $NIX_PROFILES)
59
+ if test -e "$i/etc/ssl/certs/ca-bundle.crt"
60
+ set --export NIX_SSL_CERT_FILE "$i/etc/ssl/certs/ca-bundle.crt"
61
+ end
62
63
end
64
65
# Only use MANPATH if it is already set. In general `man` will just simply
0 commit comments