From 21aaa2651039a1210a3d41989e759d64f9b9b058 Mon Sep 17 00:00:00 2001 From: Valentin Gagarin Date: Tue, 1 Jul 2025 15:12:26 +0200 Subject: [PATCH] WIP --- deployment/data-model.nix | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/deployment/data-model.nix b/deployment/data-model.nix index 8fb9a250..7ff68e8a 100644 --- a/deployment/data-model.nix +++ b/deployment/data-model.nix @@ -20,18 +20,23 @@ in options = { resources = mkOption { description = "Collection of deployment resources that can be configured by hosting providers and required by applications"; - type = attrsOf (submodule { - options = { - consumer = mkOption { - description = "Configuration of the resource by an application, a description of how the resource is consumed"; - type = deferredModule; - }; - provider = mkOption { - description = "Configuration of the resource by the hosting provider, a description of how the resource is made available"; - type = deferredModule; - }; - }; - }); + type = attrsOf ( + submodule ( + { config, ... }: + { + options = { + consumer = mkOption { + description = "Configuration of the resource by an application, a description of how the resource is consumed"; + type = deferredModule; + }; + provider = mkOption { + description = "Configuration of the resource by the hosting provider, a description of how the resource is made available"; + type = deferredModule; + }; + }; + } + ) + ); }; applications = mkOption { description = "Collection of Fediversity applications";