Experiment with dual option types (list & attribute sets).
svn path=/nixos/trunk/; revision=27978
This commit is contained in:
parent
e231543033
commit
ef63ea98f4
2 changed files with 3 additions and 2 deletions
|
@ -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 ];
|
||||
};
|
||||
|
||||
|
|
|
@ -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 = {
|
||||
|
||||
|
|
Loading…
Reference in a new issue