Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
ssh-store.hh
Go to the documentation of this file.
1#pragma once
3
5#include <cstdint>
6
7namespace nix {
8
9struct CommonSSHStoreConfig : virtual StoreConfig
10{
11 using StoreConfig::StoreConfig;
12
13 const Setting<std::optional<uint16_t>> port{this, std::nullopt, "port",
14 "Port that should be used instead of the default on the remote machine."};
15
16 const Setting<Path> sshKey{this, "", "ssh-key",
17 "Path to the SSH private key used to authenticate to the remote machine."};
18
19 const Setting<std::string> sshPublicHostKey{this, "", "base64-ssh-public-host-key",
20 "The public host key of the remote machine."};
21
22 const Setting<bool> compress{this, false, "compress",
23 "Whether to enable SSH compression."};
24
25 const Setting<std::string> remoteStore{this, "", "remote-store",
26 R"(
27 [Store URL](@docroot@/command-ref/new-cli/nix3-help-stores.md#store-url-format)
28 to be used on the remote machine. The default is `auto`
29 (i.e. use the Nix daemon or `/nix/store` directly).
30 )"};
31};
32
33void registerSSHStore();
34
35}
Definition config.hh:310
Definition ssh-store.hh:10