From e800372155b05750b49ce562ab8710f1feda860f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Tue, 7 May 2019 14:14:49 +0700 Subject: [PATCH] docker-compose: support 'user' entry --- 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 43a4c60..2a1273e 100644 --- a/src/nix/modules/service/docker-compose-service.nix +++ b/src/nix/modules/service/docker-compose-service.nix @@ -140,6 +140,11 @@ in default = null; description = dockerComposeRef "restart"; }; + service.user = mkOption { + type = nullOr str; + default = null; + description = dockerComposeKitchenSink; + }; service.ports = mkOption { type = listOf types.unspecified; default = []; @@ -237,5 +242,7 @@ in inherit (config.service) tty; } // lib.optionalAttrs (config.service.working_dir != null) { inherit (config.service) working_dir; + } // lib.optionalAttrs (config.service.user != null) { + inherit (config.service) user; }; }