Nix
2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Toggle main menu visibility
Loading...
Searching...
No Matches
common-ssh-store-config.hh
Go to the documentation of this file.
1
#pragma once
3
4
#include "
nix/store/store-api.hh
"
5
#include "
nix/util/url.hh
"
6
7
namespace
nix {
8
9
class
SSHMaster
;
10
11
struct
CommonSSHStoreConfig :
virtual
StoreConfig
12
{
13
private
:
14
void
anchor()
override
;
15
16
public
:
17
CommonSSHStoreConfig(
const
Params & params)
18
: StoreConfig(params,
FilePathType::Unix
)
19
{
20
}
21
22
CommonSSHStoreConfig(
const
ParsedURL::Authority
&
authority
,
const
Params & params);
23
24
Setting<std::optional<AbsolutePath>
> sshKey{
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
45
ParsedURL::Authority
authority
;
46
53
SSHMaster
createSSHMaster
(
bool
useMaster,
Descriptor
logFD = INVALID_DESCRIPTOR)
const
;
54
};
55
56
}
// namespace nix
nix::SSHMaster
Definition
ssh.hh:22
nix::Setting
Definition
configuration.hh:476
nix::Descriptor
int Descriptor
Definition
file-descriptor.hh:36
store-api.hh
nix::CommonSSHStoreConfig::authority
ParsedURL::Authority authority
Definition
common-ssh-store-config.hh:45
nix::CommonSSHStoreConfig::createSSHMaster
SSHMaster createSSHMaster(bool useMaster, Descriptor logFD=INVALID_DESCRIPTOR) const
Definition
common-ssh-store-config.cc:14
nix::ParsedURL::Authority
Definition
url.hh:32
nix::StoreConfigBase::FilePathType::Unix
@ Unix
Definition
store-api.hh:131
url.hh
libstore
include
nix
store
common-ssh-store-config.hh
Generated by
1.18.0