diff --git a/src/nix/modules/service/docker-compose-service.nix b/src/nix/modules/service/docker-compose-service.nix index 42cd89f..5082eaf 100644 --- a/src/nix/modules/service/docker-compose-service.nix +++ b/src/nix/modules/service/docker-compose-service.nix @@ -115,6 +115,11 @@ in ${dockerComposeRef "devices"} ''; }; + service.labels = mkOption { + type = attrsOf str; + default = {}; + description = dockerComposeRef "labels"; + }; service.links = mkOption { type = listOf str; default = []; @@ -247,6 +252,8 @@ in inherit (config.service) extra_hosts; } // lib.optionalAttrs (config.service.hostname != null) { inherit (config.service) hostname; + } // lib.optionalAttrs (config.service.labels != {}) { + inherit (config.service) labels; } // lib.optionalAttrs (config.service.links != []) { inherit (config.service) links; } // lib.optionalAttrs (config.service.ports != []) {