Add heterogeneousAttrsOf option type

It is parameterized by a function that takes a name and evaluates to the
option type for the attribute of that name. Together with
submoduleWithExtraArgs, this subsumes nixosSubmodule.
This commit is contained in:
Shea Levy
2014-02-11 14:59:24 -05:00
parent 8764758044
commit 3f70dabad3
2 changed files with 11 additions and 20 deletions
@@ -15,7 +15,6 @@ with pkgs.lib;
};
systemd.containers = mkOption {
# !!! Should probably use nixosSubmodule here
type = types.attrsOf (types.submodule (
{ config, options, name, ... }:
{