compose service: add 'sysctls' option

This commit is contained in:
Domen Kožar 2019-05-07 15:33:24 +07:00
parent e800372155
commit 6c7170c365
No known key found for this signature in database
GPG Key ID: C2FFBCAFD2C24246

View File

@ -174,6 +174,11 @@ in
default = null;
description = dockerComposeRef "stop_signal";
};
service.sysctls = mkOption {
type = attrsOf (either str int);
default = {};
description = dockerComposeRef "sysctls";
};
service.capabilities = mkOption {
type = attrsOf (nullOr bool);
default = {};
@ -198,6 +203,7 @@ in
inherit (config.service)
volumes
environment
sysctls
image
;
} // lib.optionalAttrs (config.service.build.context != null) {