etc module: optionSet -> submodule
This commit is contained in:
parent
96f5788346
commit
12a1de8305
@ -33,7 +33,6 @@ in
|
|||||||
options = {
|
options = {
|
||||||
|
|
||||||
environment.etc = mkOption {
|
environment.etc = mkOption {
|
||||||
type = types.loaOf types.optionSet;
|
|
||||||
default = {};
|
default = {};
|
||||||
example = literalExample ''
|
example = literalExample ''
|
||||||
{ example-configuration-file =
|
{ example-configuration-file =
|
||||||
@ -47,7 +46,8 @@ in
|
|||||||
Set of files that have to be linked in <filename>/etc</filename>.
|
Set of files that have to be linked in <filename>/etc</filename>.
|
||||||
'';
|
'';
|
||||||
|
|
||||||
options = singleton ({ name, config, ... }:
|
type = with types; loaOf (submodule (
|
||||||
|
{ name, config, ... }:
|
||||||
{ options = {
|
{ options = {
|
||||||
|
|
||||||
enable = mkOption {
|
enable = mkOption {
|
||||||
@ -117,7 +117,7 @@ in
|
|||||||
in mkDefault (pkgs.writeText name' config.text));
|
in mkDefault (pkgs.writeText name' config.text));
|
||||||
};
|
};
|
||||||
|
|
||||||
});
|
}));
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user