diff --git a/deployment/data-model.nix b/deployment/data-model.nix index a9181c6e..11256e0b 100644 --- a/deployment/data-model.nix +++ b/deployment/data-model.nix @@ -135,9 +135,7 @@ in # TODO: maybe transpose, and group the resources by type instead type = attrsOf ( attrTag ( - lib.mapAttrs' (name: resource: { - ${name} = mkOption { type = resource.policy; }; - }) config.resources + lib.mapAttrs (_name: resource: mkOption { type = submodule resource.policy; }) config.resources ) ); };