Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
common-ssh-store-config.hh
Go to the documentation of this file.
1#pragma once
3
5#include "nix/util/url.hh"
6
7namespace nix {
8
9class SSHMaster;
10
11struct CommonSSHStoreConfig : virtual StoreConfig
12{
13private:
14 void anchor() override;
15
16public:
17 CommonSSHStoreConfig(const Params & params)
18 : StoreConfig(params, FilePathType::Unix)
19 {
20 }
21
22 CommonSSHStoreConfig(const ParsedURL::Authority & authority, const Params & params);
23
25 this, std::nullopt, "ssh-key", "Path to the SSH private key used to authenticate to the remote machine."};
26
27 Setting<std::string> sshPublicHostKey{
28 this, "", "base64-ssh-public-host-key", "The public host key of the remote machine."};
29
30 Setting<bool> compress{this, false, "compress", "Whether to enable SSH compression."};
31
32 Setting<std::string> remoteStore{
33 this,
34 "",
35 "remote-store",
36 R"(
37 [Store URL](@docroot@/store/types/index.md#store-url-format)
38 to be used on the remote machine. The default is `auto`
39 (i.e. use the Nix daemon or `/nix/store` directly).
40 )"};
41
46
53 SSHMaster createSSHMaster(bool useMaster, Descriptor logFD = INVALID_DESCRIPTOR) const;
54};
55
56} // namespace nix
Definition ssh.hh:22
Definition configuration.hh:476
int Descriptor
Definition file-descriptor.hh:36
ParsedURL::Authority authority
Definition common-ssh-store-config.hh:45
SSHMaster createSSHMaster(bool useMaster, Descriptor logFD=INVALID_DESCRIPTOR) const
Definition common-ssh-store-config.cc:14
Definition url.hh:32
@ Unix
Definition store-api.hh:131