nix-serve/nix 바이너리 캐시를 알아내려고 노력 중입니다.
어느 시점에서 나는 다음과 같이 덧붙였습니다.
nix = {
binaryCaches = [
"https://cache.nixos.org/"
"http://127.0.0.1:8899"
];
binaryCachePublicKeys = [
"my-nix-cache:z3o8Kf/PTzehVpMsE2KoYyf5rkU/XCR0+AfEvtKSgo8="
];
trustedUsers = [ "root" "chris" ];
};
127.0.0.1
그런 다음 +ran 항목을 제거했습니다 nixos-rebuild switch
.
그런데 사용하려고 할 때마다 여전히 바이너리 캐시 nix-env
로 사용하려고 하는데 ...127.0.0.1:8899
어떻게 제거/비활성화할 수 있나요?
nix-env -i i3
warning: name collision in input Nix expressions, skipping '/home/chris/.nix-defexpr/channels_root/nixos'
warning: name collision in input Nix expressions, skipping '/home/chris/.nix-defexpr/channels_root/unstable'
installing 'i3-4.16.1'
warning: unable to download 'http://127.0.0.1:8899/09v6jr8gr9g50fm71yamspisi01g9b2d.narinfo': Couldn't connect to server (7); retrying in 324 ms
warning: unable to download 'http://127.0.0.1:8899/fnak72l1m3bci5qfn5719h1jzw2wjsdz.narinfo': Couldn't connect to server (7); retrying in 303 ms
warning: unable to download 'http://127.0.0.1:8899/fnak72l1m3bci5qfn5719h1jzw2wjsdz.narinfo': Couldn't connect to server (7); retrying in 520 ms
warning: unable to download 'http://127.0.0.1:8899/09v6jr8gr9g50fm71yamspisi01g9b2d.narinfo': Couldn't connect to server (7); retrying in 621 ms
warning: unable to download 'http://127.0.0.1:8899/fnak72l1m3bci5qfn5719h1jzw2wjsdz.narinfo': Couldn't connect to server (7); retrying in 1346 ms
warning: unable to download 'http://127.0.0.1:8899/09v6jr8gr9g50fm71yamspisi01g9b2d.narinfo': Couldn't connect to server (7); retrying in 1046 ms
warning: unable to download 'http://127.0.0.1:8899/09v6jr8gr9g50fm71yamspisi01g9b2d.narinfo': Couldn't connect to server (7); retrying in 2506 ms
warning: unable to download 'http://127.0.0.1:8899/fnak72l1m3bci5qfn5719h1jzw2wjsdz.narinfo': Couldn't connect to server (7); retrying in 2528 ms
답변1
제거하면 ~/.config/nix/nix.conf
문제가 해결되었습니다(그러나 그것이 어떻게 생성되었는지는 모르겠습니다).
어쩌면 그 항목을 삭제할 수도 있었지만 127.0.0.1:8899
게으르다.
substituters = https://cache.nixos.org https://cache.nixos.org/ https://hydra.iohk.io http://127.0.0.1:8899 ...
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= ...