From 4468e411fd40945f96fb473b8574721d1dfd0f0b Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Wed, 15 Jul 2020 22:16:51 -0400 Subject: feat(3p/nix): Add VerifyStore Change-Id: I6a0596e986867e94857da461c746a80750830f7b Reviewed-on: https://cl.tvl.fyi/c/depot/+/1206 Tested-by: BuildkiteCI Reviewed-by: tazjin --- third_party/nix/src/proto/worker.proto | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/third_party/nix/src/proto/worker.proto b/third_party/nix/src/proto/worker.proto index ad1810b4d569..d983b261c84a 100644 --- a/third_party/nix/src/proto/worker.proto +++ b/third_party/nix/src/proto/worker.proto @@ -82,6 +82,9 @@ service Worker { // Optimise the disk space usage of the Nix store by hard-linking files // with the same contents. rpc OptimiseStore(google.protobuf.Empty) returns (google.protobuf.Empty); + + // Check the integrity of the Nix store + rpc VerifyStore(VerifyStoreRequest) returns (VerifyStoreResponse); } enum HashType { @@ -240,3 +243,14 @@ message DerivationOutputNames { message HashPart { string hash_part = 1; } + +message VerifyStoreRequest { + bool repair = 1; + // TODO(grfn): Remove double-negative + bool dontCheckSigs = 2; +} + +message VerifyStoreResponse { + // True if errors remain (???) + bool errors = 1; +} -- cgit 1.4.1