Experiment with dual option types (list & attribute sets).

svn path=/nixos/trunk/; revision=27978
This commit is contained in:
Nicolas Pierron 2011-07-27 20:55:35 +00:00
parent e231543033
commit ef63ea98f4
2 changed files with 3 additions and 2 deletions

View file

@ -322,7 +322,7 @@ in
This option defines the system jobs started and managed by the
Upstart daemon.
'';
type = types.attrsOf types.optionSet;
type = types.loaOf types.optionSet;
options = [ jobOptions upstartJob ];
};

View file

@ -50,7 +50,8 @@ in
<command>mkdir -p</command> .
";
type = types.nullOr (types.list types.optionSet);
type = types.nullOr (types.loaOf types.optionSet);
apply = x: attrValues x;
options = {