1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-29 19:03:16 +02:00

Move some PKI stuff from LocalStore to Store

This commit is contained in:
John Ericson 2020-12-20 16:05:09 +00:00
parent 29bd63e990
commit 57062179ce
4 changed files with 22 additions and 21 deletions

View file

@ -189,6 +189,10 @@ struct StoreConfig : public Config
const Setting<bool> isTrusted{this, false, "trusted", "whether paths from this store can be used as substitutes even when they lack trusted signatures"};
Setting<bool> requireSigs{this,
settings.requireSigs,
"require-sigs", "whether store paths should have a trusted signature on import"};
Setting<int> priority{this, 0, "priority", "priority of this substituter (lower value means higher priority)"};
Setting<bool> wantMassQuery{this, false, "want-mass-query", "whether this substituter can be queried efficiently for path validity"};
@ -710,11 +714,20 @@ public:
return toRealPath(printStorePath(storePath));
}
const PublicKeys & getPublicKeys();
virtual void createUser(const std::string & userName, uid_t userId)
{ }
protected:
struct CryptoState
{
std::unique_ptr<PublicKeys> publicKeys;
};
Sync<CryptoState> _cryptoState;
Stats stats;
/* Unsupported methods. */