Use LegacySSHStore

In https://github.com/NixOS/nix/pull/10748 it is extended with
everything we need.
This commit is contained in:
John Ericson
2024-05-20 16:22:19 -04:00
parent 881462bb4e
commit 4a4a0f901c
2 changed files with 68 additions and 118 deletions

View File

@@ -20,9 +20,7 @@
#include "store-api.hh"
#include "sync.hh"
#include "nar-extractor.hh"
#include "serve-protocol.hh"
#include "serve-protocol-impl.hh"
#include "serve-protocol-connection.hh"
#include "legacy-ssh-store.hh"
#include "machines.hh"
@@ -292,9 +290,11 @@ struct Machine : nix::Machine
bool isLocalhost() const;
// A connection to a machine
struct Connection : nix::ServeProto::BasicClientConnection {
struct Connection {
// Backpointer to the machine
ptr machine;
// Opened store
nix::ref<nix::LegacySSHStore> store;
};
};