mirror of
https://github.com/NixOS/nix
synced 2025-06-24 22:11:15 +02:00
Merge 19fc159f96
into 918ac6b2fc
This commit is contained in:
commit
6837c9956e
1 changed files with 7 additions and 1 deletions
|
@ -237,7 +237,13 @@ bool Settings::isWSL1()
|
|||
|
||||
Path Settings::getDefaultSSLCertFile()
|
||||
{
|
||||
for (auto & fn : {"/etc/ssl/certs/ca-certificates.crt", "/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt"})
|
||||
for (auto & fn : {
|
||||
// NixOS, fedora, debian, ubuntu
|
||||
"/etc/ssl/certs/ca-certificates.crt",
|
||||
// openSUSE
|
||||
"/var/lib/ca-certificates/ca-bundle.pem",
|
||||
"/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt"
|
||||
})
|
||||
if (pathAccessible(fn)) return fn;
|
||||
return "";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue