Open athrunsun opened 2 years ago
I suddenly recalled an issue on tuna nix-darwin. Refer to https://github.com/sjtug/mirror-requests/issues/220
@ZenithalHourlyRate I came across that issue yesterday, and I've tried https://mirror.sjtu.edu.cn/nix-channels/store
, doesn't work, still downloading fom https://cache.nixos.org
. Are you using nix on macOS?
We have two issues here. One is untrusted-user
, another one is tuna did not mirror nix-darwin.
sjtu should work as it is a reverse proxy instead of a mirror.
doesn't work
Did nix prompt untrusted user or just fallback to cache.nixos.org silently.
@ZenithalHourlyRate I've already added myself into the trusted users list: trusted-users = bruce root
.
It just fallback to cache.nixos.org silently.
I should see sth. like copying path '/nix/store/m0nsx4ai768kjp9c40vhkpj9pxlii46m-bash-5.1-p12' from 'https://mirror.sjtu.edu.cn/nix-channels/store'...
right?
I should see sth. like
copying path '/nix/store/m0nsx4ai768kjp9c40vhkpj9pxlii46m-bash-5.1-p12' from 'https://mirror.sjtu.edu.cn/nix-channels/store'...
right?
Unfortunately no. TUNA currently does not mirror nix-darwin contents. Refer again to https://github.com/sjtug/mirror-requests/issues/220
@ZenithalHourlyRate I mean, if I use sjtu mirror (NOT tuna mirror), I should see sth. like copying path '/nix/store/m0nsx4ai768kjp9c40vhkpj9pxlii46m-bash-5.1-p12' from 'https://mirror.sjtu.edu.cn/nix-channels/store'...
right?
(NOT tuna mirror),
Sorry for that mistake. Yes you should see that, but now I don't know why it did not work. I'll look into it later.
先决条件 (Prerequisites)
发生了什么(What happened)
Add nix channel mirror:
Add binary cache mirror to
/etc/nix/nix.conf
and add myself totrusted-users
:Restart nix daemon:
Verify configuration is updated:
nix --extra-experimental-features nix-command show-config
, output:Install a package:
nix-env -iA nixpkgs1.tig
, output:期望的现象(What you expected to happen)
Install a package:
nix-env -iA nixpkgs1.tig
, output:如何重现此问题(How to reproduce it)
Follow steps in "What happened".
操作系统(OS Version)
macOS monterey 12.2.1
浏览器(如果适用)(Browser version, if applicable)
No response
其他环境(Other environments)
nix version: 2.6.0
其他需要说明的事项(Anything else we need to know)
No response