From cb137954089b6cc61039331bba4364f7259d9406 Mon Sep 17 00:00:00 2001 From: Qaif Shaikh <72766392+qaifshaikh@users.noreply.github.com> Date: Tue, 28 Feb 2023 16:52:18 -0600 Subject: [PATCH] Use service submodule for volumes type --- src/nix/modules/composition/docker-compose.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nix/modules/composition/docker-compose.nix b/src/nix/modules/composition/docker-compose.nix index 799c061..6555e6b 100644 --- a/src/nix/modules/composition/docker-compose.nix +++ b/src/nix/modules/composition/docker-compose.nix @@ -64,7 +64,7 @@ in description = "An attribute set of service configurations. A service specifies how to run an image as a container."; }; docker-compose.volumes = lib.mkOption { - type = lib.types.anything; + type = lib.types.attrsOf (lib.types.submodule service.volumes); description = "A attribute set of volume configurations."; default = {}; };