Git Product home page Git Product logo

Comments (14)

LnL7 avatar LnL7 commented on August 17, 2024 1

I found the cause of this issue with the help from some of the people on ##nix-darwin. It turns out that the version of nix in the installer does not have libsodium support, while the one in nixpkgs does, knowing that makes the issue here pretty obvious.
Installing the one from nixpkgs after using the installer will fix this:

nix-env -f -iA nixpkgs.nix

from nix-darwin.

LnL7 avatar LnL7 commented on August 17, 2024

This doesn't look good 🙁. I have a feeling this might happen when SSL_CERT_FILE is not configured properly.
What configuration did you use?

from nix-darwin.

pkdahl avatar pkdahl commented on August 17, 2024

Doing echo $SSL_CERT_FILE says /Users/pkdahl/.nix-profile/etc/ssl/certs/ca-bundle.crt

from nix-darwin.

LnL7 avatar LnL7 commented on August 17, 2024

And I assume the file exists, what version of nix are you using? nix-env --version

from nix-darwin.

pkdahl avatar pkdahl commented on August 17, 2024

I can confirm that the certfile exists. Nix version is 1.11.5.

from nix-darwin.

LnL7 avatar LnL7 commented on August 17, 2024

Let me check aparently I'm still on 1.11.4, I'm thinking it might be because of this in nix.conf
If so you might be able to get around it by creating an empty /etc/nix/nix.conf, darwin-rebuild won't overwrite it.

binary-cache-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
signed-binary-caches = *

from nix-darwin.

LnL7 avatar LnL7 commented on August 17, 2024

I did find a bug with nix.conf caused by the build-users-group option, but I'm pretty sure that's unrelated.

from nix-darwin.

yurrriq avatar yurrriq commented on August 17, 2024

I'm having the same issue sporadically and my workaround for now was to add this to my darwin-configuration.nix:

{ config, lib, pkgs, ... }:
{
  # ...
  nix.requireSignedBinaryCaches = false;
}

I've also had success adding --option use-binary-caches false to nix-* and darwin-rebuild calls, but obviously that's not ideal as you then have to build everything by hand...

from nix-darwin.

LnL7 avatar LnL7 commented on August 17, 2024

@yurrriq is that also with 1.11.5 or are you on another version?

from nix-darwin.

yurrriq avatar yurrriq commented on August 17, 2024

I'm on 1.11.4.

from nix-darwin.

yurrriq avatar yurrriq commented on August 17, 2024

Awesome, thanks! I'll try it out later.

from nix-darwin.

LnL7 avatar LnL7 commented on August 17, 2024

I also added a not about this to the installation instructions.

from nix-darwin.

yurrriq avatar yurrriq commented on August 17, 2024

Seems to be working for me.

from nix-darwin.

pkdahl avatar pkdahl commented on August 17, 2024

Seems to be working for me too. Thanks!

from nix-darwin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.