From ec4f2a836de45da68460adf7ae64380fbf80ca71 Mon Sep 17 00:00:00 2001 From: GHOSCHT <31184695+GHOSCHT@users.noreply.github.com> Date: Tue, 1 Oct 2024 16:23:38 +0200 Subject: [PATCH] Add profiles --- src/nix/modules/service/docker-compose-service.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/nix/modules/service/docker-compose-service.nix b/src/nix/modules/service/docker-compose-service.nix index c55b971..3033931 100644 --- a/src/nix/modules/service/docker-compose-service.nix +++ b/src/nix/modules/service/docker-compose-service.nix @@ -210,6 +210,11 @@ in default = []; description = serviceRef "external_links"; }; + service.profiles = mkOption { + type = listOf str; + default = []; + description = serviceRef "profiles"; + }; service.extra_hosts = mkOption { type = listOf str; default = []; @@ -411,5 +416,7 @@ in inherit (config.service) working_dir; } // lib.optionalAttrs (config.service.user != null) { inherit (config.service) user; + } // lib.optionalAttrs (config.service.profiles != []) { + inherit (config.service) profiles; }; }