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:
@@ -15,7 +15,6 @@ with pkgs.lib;
|
||||
};
|
||||
|
||||
systemd.containers = mkOption {
|
||||
# !!! Should probably use nixosSubmodule here
|
||||
type = types.attrsOf (types.submodule (
|
||||
{ config, options, name, ... }:
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user