You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I got "You're not a trusted user of the Nix store. You have the following options: ..." despite having the relevant configuration on nix-darwin.
To reproduce
On a standard nix-darwin installation, add the following lines to ~/.config/nix-darwin/flake.nix (see the full configuration in the following gist).
Finally, run devenv shell. It will successfully create a shell, but there are many error messages
$ devenv shell
• Building shell ...
• Using Cachix: nixpkgs-python
✖ You're not a trusted user of the Nix store. You have the following options:a) Add yourself to the trusted-users list in /etc/nix/nix.conf for devenv to manage caches for you.trusted-users = root qysRestart nix-daemon with: $ sudo launchctl kickstart -k system/org.nixos.nix-daemonb) Add binary caches to /etc/nix/nix.conf yourself:extra-substituters = https://nixpkgs-python.cachix.orgextra-trusted-public-keys = devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw= nixpkgs-python.cachix.org-1:hxjI7pFxTyuTHn2NkvWCrAUcNZLNS3ZAvfYNuYifcEU=And disable automatic cache configuration in `devenv.nix`:{ cachix.enable = false;}• Failed to get cachix caches due to evaluation error✔ Building shell in 0.1s.• Entering shell• Using Cachix: nixpkgs-python✖ You're not a trusted user of the Nix store. You have the following options:
a) Add yourself to the trusted-users list in /etc/nix/nix.conf for devenv to manage caches for you.
trusted-users = root qys
Restart nix-daemon with:
$ sudo launchctl kickstart -k system/org.nixos.nix-daemon
b) Add binary caches to /etc/nix/nix.conf yourself:
extra-substituters = https://nixpkgs-python.cachix.org
extra-trusted-public-keys = nixpkgs-python.cachix.org-1:hxjI7pFxTyuTHn2NkvWCrAUcNZLNS3ZAvfYNuYifcEU= devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw=
And disable automatic cache configuration in`devenv.nix`:
{
cachix.enable = false;
}
• Failed to get cachix caches due to evaluation error
Running tasks devenv:enterShell
Succeeded devenv:python:virtualenv 16ms
Succeeded devenv:enterShell 6ms
2 Succeeded 22.99ms
(devenv) bash-5.2$
Version
I'm not sure if I'm using flakes. How do I find out?
$ devenv version
devenv 1.3.1 (aarch64-darwin)
Additional questions
If I set cachix.enable = false;, does devenv build everything on my local machine, or does it still rely on the binary cache provided by cachix via extra-substituters?
What's the difference between adding myself to the trusted-users and adding binary caches to /etc/nix/nix.conf myself?
The text was updated successfully, but these errors were encountered:
Until that's released, set cachix.enable = false; to silence the warning. This only disables the automatic cache configuration feature (cachix.pull in devenv.nix). devenv (and nix) will continue to use all configured substituters.
Describe the bug
I got "You're not a trusted user of the Nix store. You have the following options: ..." despite having the relevant configuration on nix-darwin.
To reproduce
On a standard
nix-darwin
installation, add the following lines to~/.config/nix-darwin/flake.nix
(see the full configuration in the following gist).Next, run
darwin-rebuild switch --flake ~/.config/nix-darwin
, and then verify that the changes are appliedAfter that, create a devenv project with the following files: https://gist.github.com/nalzok/95b8612d50c92a400c9e86b37db6b3d8
Finally, run
devenv shell
. It will successfully create a shell, but there are many error messagesVersion
I'm not sure if I'm using flakes. How do I find out?
Additional questions
cachix.enable = false;
, does devenv build everything on my local machine, or does it still rely on the binary cache provided by cachix viaextra-substituters
?The text was updated successfully, but these errors were encountered: