summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2019-08-31 04:20:00 -0500
committerMario Rodas <marsam@users.noreply.github.com>2019-08-31 04:20:00 -0500
commit2807a31f95f3c4b399839dffe056c63bb7b3ae2f (patch)
tree1c662d26388388fdc86c33bf4eed4218c6e3c649
parentef3d6e4354d029c7ef6f614654e48e9656e077f8 (diff)
modules: remove usages of types.string
-rw-r--r--modules/services/autossh.nix6
-rw-r--r--modules/services/hercules-ci-agent/default.nix2
-rw-r--r--modules/services/postgresql/default.nix2
3 files changed, 5 insertions, 5 deletions
diff --git a/modules/services/autossh.nix b/modules/services/autossh.nix
index 8c5cd5c..2df74ec 100644
--- a/modules/services/autossh.nix
+++ b/modules/services/autossh.nix
@@ -20,12 +20,12 @@ in
type = types.listOf (types.submodule {
options = {
name = mkOption {
- type = types.string;
+ type = types.str;
example = "socks-peer";
description = "Name of the local AutoSSH session";
};
user = mkOption {
- type = types.string;
+ type = types.str;
example = "bill";
description = "Name of the user the AutoSSH session should run as";
};
@@ -40,7 +40,7 @@ in
'';
};
extraArguments = mkOption {
- type = types.string;
+ type = types.str;
example = "-N -D4343 bill@socks.example.net";
description = ''
Arguments to be passed to AutoSSH and retransmitted to SSH
diff --git a/modules/services/hercules-ci-agent/default.nix b/modules/services/hercules-ci-agent/default.nix
index fe43ec7..56e69b3 100644
--- a/modules/services/hercules-ci-agent/default.nix
+++ b/modules/services/hercules-ci-agent/default.nix
@@ -17,7 +17,7 @@ in {
description = "Alternative base URL for the Hercules API";
example = "https://hercules-ci.com";
default = null;
- type = types.nullOr types.string;
+ type = types.nullOr types.str;
};
clusterJoinTokenPath = mkOption {
diff --git a/modules/services/postgresql/default.nix b/modules/services/postgresql/default.nix
index 35a4aed..a17ef3b 100644
--- a/modules/services/postgresql/default.nix
+++ b/modules/services/postgresql/default.nix
@@ -62,7 +62,7 @@ in
};
characterSet = mkOption {
- type = types.string;
+ type = types.str;
default = "UTF8";
example = "SJIS";
description = ''Character set specified during initialization'';