Use service submodule for volumes type

This commit is contained in:
Qaif Shaikh 2023-02-28 16:52:18 -06:00
parent de9930171a
commit cb13795408

View File

@ -64,7 +64,7 @@ in
description = "An attribute set of service configurations. A service specifies how to run an image as a container."; description = "An attribute set of service configurations. A service specifies how to run an image as a container.";
}; };
docker-compose.volumes = lib.mkOption { 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."; description = "A attribute set of volume configurations.";
default = {}; default = {};
}; };