diff options
Diffstat (limited to 'src/libstore')
-rw-r--r-- | src/libstore/crypto.cc | 2 | ||||
-rw-r--r-- | src/libstore/globals.hh | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/libstore/crypto.cc b/src/libstore/crypto.cc index f56a6adab9c9..9ec8abd228e9 100644 --- a/src/libstore/crypto.cc +++ b/src/libstore/crypto.cc @@ -105,7 +105,7 @@ PublicKeys getDefaultPublicKeys() // FIXME: filter duplicates - for (auto s : settings.binaryCachePublicKeys.get()) { + for (auto s : settings.trustedPublicKeys.get()) { PublicKey key(s); publicKeys.emplace(key.name, key); } diff --git a/src/libstore/globals.hh b/src/libstore/globals.hh index a4aa842d70fd..70c01bb32665 100644 --- a/src/libstore/globals.hh +++ b/src/libstore/globals.hh @@ -259,10 +259,11 @@ public: Setting<bool> enforceDeterminism{this, true, "enforce-determinism", "Whether to fail if repeated builds produce different output."}; - Setting<Strings> binaryCachePublicKeys{this, + Setting<Strings> trustedPublicKeys{this, {"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="}, - "binary-cache-public-keys", - "Trusted public keys for secure substitution."}; + "trusted-public-keys", + "Trusted public keys for secure substitution.", + {"binary-cache-public-keys"}}; Setting<Strings> secretKeyFiles{this, {}, "secret-key-files", "Secret keys with which to sign local builds."}; |