Comments (14)
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.
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.
Doing echo $SSL_CERT_FILE
says /Users/pkdahl/.nix-profile/etc/ssl/certs/ca-bundle.crt
from nix-darwin.
And I assume the file exists, what version of nix are you using? nix-env --version
from nix-darwin.
I can confirm that the certfile exists. Nix version is 1.11.5.
from nix-darwin.
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.
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.
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.
@yurrriq is that also with 1.11.5 or are you on another version?
from nix-darwin.
I'm on 1.11.4
.
from nix-darwin.
Awesome, thanks! I'll try it out later.
from nix-darwin.
I also added a not about this to the installation instructions.
from nix-darwin.
Seems to be working for me.
from nix-darwin.
Seems to be working for me too. Thanks!
from nix-darwin.
Related Issues (20)
- mtr is missing option to set setuidbit HOT 2
- Add a uninstaller for flakes HOT 4
- darwin-rebuild needs restart for some settings HOT 3
- Nix-Darwin x HM doesn't install paths in for zsh `/run/current-system/sw/bin` HOT 13
- Putting the configuration in `~/.config/nixpkgs` instead `~/.nixpkgs` HOT 1
- `cachix-agent` service dies at launch HOT 3
- Always fail to pull nix-darwin from github? HOT 1
- Feature request: add com.apple.dock.persistent-others
- vscode-extensions not found on share directory HOT 1
- Is nix-darwin installing a second Nix? HOT 29
- Encountering an mdDoc related error when updating nix-darwin via flake HOT 13
- `pkg-config` not functioning as expected on fresh install and shells HOT 10
- Casks not updated automatically HOT 2
- [Question] /run symlink necessary? HOT 5
- use-xdg-base-directories does not effect $PATH
- Logging in and out breaks Yabai's Scripting Addition
- Yabi Scripting Addition fails to inject into Dock.app HOT 1
- (re)install fails with nonexistent path in nix-store HOT 1
- If use-xdg-base-directories is true then NIX_PROFILES is not correct
- Flake installation fails if `~/.config` is a Git repository and `nix-darwin/flake.nix` is not committed HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nix-darwin.