mirror of
https://github.com/status-im/status-react.git
synced 2025-01-12 03:54:32 +00:00
Jakub Sokołowski
6f8dc27282
According to this line from the docs: >The system-wide configuration file sysconfdir/nix/nix.conf (i.e. /etc/nix/nix.conf), >or $NIX_CONF_DIR/nix.conf if NIX_CONF_DIR is set. Values loaded in this file are not >forwarded to the Nix daemon. The client assumes that the daemon has already loaded them. https://nixos.org/manual/nix/stable/command-ref/conf-file.html#description Our usage of `NIX_CONF_DIR` has been wrong for a while now. The correct way of applying this config is using `NIX_USER_CONF_FILES`. In addition the `extra-substituters` no longer exists in the docs. Use of `trusted-substituters` is necessary according to: >At least one of the following conditions must be met for Nix to use a substituter: > >- the substituter is in the trusted-substituters list >- the user calling Nix is in the trusted-users list https://nixos.org/manual/nix/stable/command-ref/conf-file.html#conf-substituters Signed-off-by: Jakub Sokołowski <jakub@status.im>
16 lines
804 B
Plaintext
16 lines
804 B
Plaintext
# NOTE: If you are in Asia you might want to add https://nix-cache-cn.status.im/ to substituters.
|
|
substituters = https://nix-cache.status.im/ https://cache.nixos.org/
|
|
trusted-substituters = https://nix-cache.status.im/ https://cache.nixos.org/
|
|
trusted-public-keys = nix-cache.status.im-1:x/93lOfLU+duPplwMSBR+OlY4+mo+dCN7n0mr4oPwgY= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
|
|
# Some downloads are multiple GB, default is 5 minutes
|
|
stalled-download-timeout = 3600
|
|
connect-timeout = 10
|
|
max-jobs = auto
|
|
# Helps avoid removing currently used dependencies via garbage collection
|
|
keep-derivations = true
|
|
keep-outputs = true
|
|
# Some builds on MacOS have issue with sandbox so they are disabled with __noChroot.
|
|
sandbox = relaxed
|
|
# Enable Nix v2 interface.
|
|
experimental-features = nix-command
|