mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 11:44:07 +00:00
Experiment with dual option types (list & attribute sets).
svn path=/nixos/trunk/; revision=27978
This commit is contained in:
parent
e231543033
commit
ef63ea98f4
@ -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 New Issue
Block a user