@@ -33,7 +33,6 @@ in
3333 options = {
3434
3535 environment.etc = mkOption {
36− type = types.loaOf types.optionSet;
3736 default = {};
3837 example = literalExample ''
3938 { example-configuration-file =
@@ -47,7 +46,8 @@ in
4746 Set of files that have to be linked in <filename>/etc</filename>.
4847 '';
4948
50− options = singleton ({ name, config, ... }:
49+ type = with types; loaOf (submodule (
50+ { name, config, ... }:
5151 { options = {
5252
5353 enable = mkOption {
@@ -117,7 +117,7 @@ in
117117 in mkDefault (pkgs.writeText name' config.text));
118118 };
119119
120− });
120+ }));
121121
122122 };
123123