2023-04-01 06:18:41 +03:00
|
|
|
#pragma once
|
|
|
|
///@file
|
|
|
|
|
2023-03-22 15:23:36 +02:00
|
|
|
#include "store-api.hh"
|
|
|
|
|
|
|
|
namespace nix {
|
|
|
|
|
|
|
|
struct CommonSSHStoreConfig : virtual StoreConfig
|
|
|
|
{
|
|
|
|
using StoreConfig::StoreConfig;
|
|
|
|
|
2023-10-31 00:12:37 +02:00
|
|
|
const Setting<Path> sshKey{this, "", "ssh-key",
|
2023-03-22 15:23:36 +02:00
|
|
|
"Path to the SSH private key used to authenticate to the remote machine."};
|
|
|
|
|
2023-10-31 00:12:37 +02:00
|
|
|
const Setting<std::string> sshPublicHostKey{this, "", "base64-ssh-public-host-key",
|
2023-03-22 15:23:36 +02:00
|
|
|
"The public host key of the remote machine."};
|
|
|
|
|
2023-10-31 00:12:37 +02:00
|
|
|
const Setting<bool> compress{this, false, "compress",
|
2023-03-22 15:23:36 +02:00
|
|
|
"Whether to enable SSH compression."};
|
|
|
|
|
2023-10-31 00:12:37 +02:00
|
|
|
const Setting<std::string> remoteStore{this, "", "remote-store",
|
2023-03-22 15:23:36 +02:00
|
|
|
R"(
|
2023-12-01 00:07:09 +02:00
|
|
|
[Store URL](@docroot@/store/types/index.md#store-url-format)
|
2023-03-22 15:23:36 +02:00
|
|
|
to be used on the remote machine. The default is `auto`
|
|
|
|
(i.e. use the Nix daemon or `/nix/store` directly).
|
|
|
|
)"};
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|