-
-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathconfigModule.nix
More file actions
25 lines (23 loc) · 689 Bytes
/
Copy pathconfigModule.nix
File metadata and controls
25 lines (23 loc) · 689 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{lib}: extraConfigOptions:
with lib;
types.submodule {
options =
{
apiVersion = mkOption {
type = types.str;
default = "v3";
description = "Current version of the API of the service";
};
apiKeyPath = mkOption {
type = types.nullOr types.path;
default = null;
description = "Path to API key secret file";
};
hostConfig = mkOption {
type = import ./hostConfigModule.nix {inherit lib;};
default = {};
description = "Host configuration options that will be set via the API /config/host endpoint";
};
}
// extraConfigOptions;
}