git.iko.soy/typeable/nixpkgs
on master help sign in
etc module: optionSet -> submodule
commit12a1de83050335812b812788a505f8e76d382dec authorEric Sagnes <eric.sagnes@gmail.com> dateSun 11 Sep 2016, 19:35 (10 years ago) parent96f5788
1 file changed+3−3
nixos/modules/system/etc/etc.nix+3−3
nixos/modules/system/etc/etc.nix+3−3
@@ -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