From 1f2b2da9c2f7f1137e6d5de095048e9f24c59c7c Mon Sep 17 00:00:00 2001 From: Kiara Grouwstra Date: Tue, 22 Jul 2025 17:52:45 +0200 Subject: [PATCH] [HACK] comment environment resources type, making the test go through --- deployment/data-model.nix | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/deployment/data-model.nix b/deployment/data-model.nix index 83c540d7..4f9bd348 100644 --- a/deployment/data-model.nix +++ b/deployment/data-model.nix @@ -133,19 +133,24 @@ in Setting this is optional, but provides a place to declare that information for programmatic use in the resource mapping. ''; # TODO: maybe transpose, and group the resources by type instead - type = attrsOf ( - attrTag ( - lib.mapAttrs ( - _name: resource: - mkOption { - type = submoduleWith { - class = "fediversity-resource-policy"; - modules = [ resource.policy ]; - }; - } - ) config.resources - ) - ); + # # FIXME: error: The option `environments.single-nixos-vm.resources.shell.login-shell.apply' does not exist. Definition values: + # # - In `': + # # However there are no options defined in `environments.single-nixos-vm.resources.shell.login-shell'. Are you sure you've + # # declared your options properly? This can happen if you e.g. declared your options in `types.submodule' + # # under `config' rather than `options'. + # type = attrsOf ( + # attrTag ( + # lib.mapAttrs ( + # _name: resource: + # mkOption { + # type = submoduleWith { + # class = "fediversity-resource-policy"; + # modules = [ resource.policy ]; + # }; + # } + # ) config.resources + # ) + # ); }; implementation = mkOption { description = "Mapping of resources required by applications to available resources; the result can be deployed";