forked from fediversity/fediversity
Signed-off-by: Kiara Grouwstra <kiara@procolix.eu> continued Signed-off-by: Kiara Grouwstra <kiara@procolix.eu>
42 lines
1.1 KiB
Nix
42 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
...
|
|
}:
|
|
let
|
|
inherit (lib) mkOption types;
|
|
in
|
|
{
|
|
options = {
|
|
host = mkOption {
|
|
type = types.str;
|
|
description = "name of the host to deploy to";
|
|
};
|
|
targetSystem = mkOption {
|
|
type = types.str;
|
|
description = "name of the host to deploy to";
|
|
};
|
|
sshOpts = mkOption {
|
|
description = "Extra SSH options (`-o`) to use.";
|
|
type = types.listOf types.str;
|
|
default = [ ];
|
|
example = "ConnectTimeout=60";
|
|
};
|
|
httpBackend = mkOption {
|
|
description = "environment variables to configure the TF HTTP back-end, see <https://developer.hashicorp.com/terraform/language/backend/http#configuration-variables>";
|
|
type = types.attrsOf (types.either types.str types.int);
|
|
};
|
|
proxmox-user = mkOption {
|
|
description = "The ProxmoX user to use.";
|
|
type = types.str;
|
|
default = "root@pam";
|
|
};
|
|
proxmox-password = mkOption {
|
|
description = "The ProxmoX password to use.";
|
|
type = types.str;
|
|
};
|
|
node-name = mkOption {
|
|
description = "the name of the ProxmoX node to use.";
|
|
type = types.str;
|
|
};
|
|
};
|
|
}
|