docker-compose: support 'user' entry

This commit is contained in:
Domen Kožar 2019-05-07 14:14:49 +07:00
parent fbf57b4489
commit e800372155
No known key found for this signature in database
GPG key ID: C2FFBCAFD2C24246

View file

@ -140,6 +140,11 @@ in
default = null; default = null;
description = dockerComposeRef "restart"; description = dockerComposeRef "restart";
}; };
service.user = mkOption {
type = nullOr str;
default = null;
description = dockerComposeKitchenSink;
};
service.ports = mkOption { service.ports = mkOption {
type = listOf types.unspecified; type = listOf types.unspecified;
default = []; default = [];
@ -237,5 +242,7 @@ in
inherit (config.service) tty; inherit (config.service) tty;
} // lib.optionalAttrs (config.service.working_dir != null) { } // lib.optionalAttrs (config.service.working_dir != null) {
inherit (config.service) working_dir; inherit (config.service) working_dir;
} // lib.optionalAttrs (config.service.user != null) {
inherit (config.service) user;
}; };
} }