nixos/modules: Remove all usages of types.string

And replace them with a more appropriate type

Also fix up some minor module problems along the way
This commit is contained in:
Silvan Mosberger
2019-08-31 18:19:00 +02:00
parent 69d58ee245
commit 478e7184f8
118 changed files with 325 additions and 324 deletions
+7 -7
View File
@@ -53,7 +53,7 @@ in
services.xinetd.extraDefaults = mkOption {
default = "";
type = types.string;
type = types.lines;
description = ''
Additional configuration lines added to the default section of xinetd's configuration.
'';
@@ -70,13 +70,13 @@ in
options = {
name = mkOption {
type = types.string;
type = types.str;
example = "login";
description = "Name of the service.";
};
protocol = mkOption {
type = types.string;
type = types.str;
default = "tcp";
description =
"Protocol of the service. Usually <literal>tcp</literal> or <literal>udp</literal>.";
@@ -90,25 +90,25 @@ in
};
user = mkOption {
type = types.string;
type = types.str;
default = "nobody";
description = "User account for the service";
};
server = mkOption {
type = types.string;
type = types.str;
example = "/foo/bin/ftpd";
description = "Path of the program that implements the service.";
};
serverArgs = mkOption {
type = types.string;
type = types.separatedString " ";
default = "";
description = "Command-line arguments for the server program.";
};
flags = mkOption {
type = types.string;
type = types.str;
default = "";
description = "";
};