aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/globals.hh
diff options
context:
space:
mode:
authorAdam Joseph <adam@westernsemico.com>2022-09-01 17:51:56 -0700
committerAdam Joseph <adam@westernsemico.com>2022-09-01 17:51:56 -0700
commit59dc8346ca53f49ccdbbd6709b12a479376d1464 (patch)
tree2dc7c8855002654687f7ef4ec4cd14c04f9f745c /src/libstore/globals.hh
parentf6c750e8b2f299e9876fd8f2578f9093682f6d7f (diff)
move substituter signature-checking conditions to configuration file documentation
Diffstat (limited to 'src/libstore/globals.hh')
-rw-r--r--src/libstore/globals.hh8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libstore/globals.hh b/src/libstore/globals.hh
index d7f351166..a659036e2 100644
--- a/src/libstore/globals.hh
+++ b/src/libstore/globals.hh
@@ -613,6 +613,14 @@ public:
are tried based on their Priority value, which each substituter can set
independently. Lower value means higher priority.
The default is `https://cache.nixos.org`, with a Priority of 40.
+
+ Nix will copy a store path from a remote store only if one
+ of the following is true:
+
+ - the store object is signed by one of the `trusted-public-keys`
+ - the substituter is in the `trusted-substituters` list
+ - the `no-require-sigs` option has been set to disable signature checking
+ - the store object is [output-addressed](#gloss-output-addressed-store-object)
)",
{"binary-caches"}};