mirror of
https://github.com/NixOS/nix
synced 2025-07-06 05:01:48 +02:00
signed-binary-caches -> require-sigs
Unlike signed-binary-caches (which could only be '*' or ''), require-sigs is a proper Boolean option. The default is true.
This commit is contained in:
parent
d0b88db441
commit
91a1987607
5 changed files with 25 additions and 17 deletions
|
@ -281,6 +281,11 @@ public:
|
|||
Setting<std::string> signedBinaryCaches{this, "*", "signed-binary-caches",
|
||||
"Obsolete."};
|
||||
|
||||
Setting<bool> requireSigs{this, signedBinaryCaches == "*", "require-sigs",
|
||||
"Whether to check that any non-content-addressed path added to the "
|
||||
"Nix store has a valid signature (that is, one signed using a key "
|
||||
"listed in 'trusted-public-keys'."};
|
||||
|
||||
Setting<Strings> substituters{this,
|
||||
nixStore == "/nix/store" ? Strings{"https://cache.nixos.org/"} : Strings(),
|
||||
"substituters",
|
||||
|
|
|
@ -97,7 +97,7 @@ public:
|
|||
private:
|
||||
|
||||
Setting<bool> requireSigs{(Store*) this,
|
||||
settings.signedBinaryCaches != "", // FIXME
|
||||
settings.requireSigs,
|
||||
"require-sigs", "whether store paths should have a trusted signature on import"};
|
||||
|
||||
PublicKeys publicKeys;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue