on macOS, installer fails to configure ca-certificates #78

Open
opened 2026-04-20 04:20:56 +00:00 by mcint · 2 comments

On first runs after install, lack of ca-certificate configured made initial fetch error.

$ nix run nixpkgs#hello
error:
       … while fetching the input 'github:NixOS/nixpkgs/nixpkgs-unstable'

       error: unable to download 'https://api.github.com/repos/NixOS/nixpkgs/commits/nixpkgs-unstable': error adding trust anchors
from file: /etc/ssl/certs/ca-certificates.crt (curl error code=77)

Fixed this issue by adding to etc/nix/nix.custom.conf:

ssl-cert-file = /etc/nix/[cert-file-copy].crt
On first runs after install, lack of ca-certificate configured made initial fetch error. ``` $ nix run nixpkgs#hello error: … while fetching the input 'github:NixOS/nixpkgs/nixpkgs-unstable' error: unable to download 'https://api.github.com/repos/NixOS/nixpkgs/commits/nixpkgs-unstable': error adding trust anchors from file: /etc/ssl/certs/ca-certificates.crt (curl error code=77) ``` Fixed this issue by adding to `etc/nix/nix.custom.conf`: ``` ssl-cert-file = /etc/nix/[cert-file-copy].crt ```
Owner

That's very strange, I think we're installing cacert in /nix/var/nix/profiles/default and should be picking it up. I'm also kind of curious why you hit it in particular rather than there being more reports, so I'm curious what we might have messed up with the installer to cause this.

That's very strange, I think we're installing cacert in /nix/var/nix/profiles/default and should be picking it up. I'm also kind of curious why you hit it in particular rather than there being more reports, so I'm curious what we might have messed up with the installer to cause this.
Member

Was this a system that previously had a nix-darwin install, by chance?

Was this a system that previously had a nix-darwin install, by chance?
Sign in to join this conversation.
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lix-project/lix-installer#78
No description provided.