tahoe module: optionSet -> submodule

This commit is contained in:
Eric Sagnes 2016-09-11 18:02:15 +09:00
parent 981df6387c
commit 1b3c03b49c

View File

@ -8,10 +8,7 @@ in
options.services.tahoe = { options.services.tahoe = {
introducers = mkOption { introducers = mkOption {
default = {}; default = {};
type = types.loaOf types.optionSet; type = with types; loaOf (submodule {
description = ''
The Tahoe introducers.
'';
options = { options = {
nickname = mkOption { nickname = mkOption {
type = types.str; type = types.str;
@ -45,13 +42,14 @@ in
''; '';
}; };
}; };
});
description = ''
The Tahoe introducers.
'';
}; };
nodes = mkOption { nodes = mkOption {
default = {}; default = {};
type = types.loaOf types.optionSet; type = with types; loaOf (submodule {
description = ''
The Tahoe nodes.
'';
options = { options = {
nickname = mkOption { nickname = mkOption {
type = types.str; type = types.str;
@ -150,6 +148,10 @@ in
''; '';
}; };
}; };
});
description = ''
The Tahoe nodes.
'';
}; };
}; };
config = mkMerge [ config = mkMerge [