From 6c7170c365ed4994be77d54f9b5ad90a042bd521 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Tue, 7 May 2019 15:33:24 +0700 Subject: [PATCH] compose service: add 'sysctls' option --- src/nix/modules/service/docker-compose-service.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/nix/modules/service/docker-compose-service.nix b/src/nix/modules/service/docker-compose-service.nix index 2a1273e..54dae9f 100644 --- a/src/nix/modules/service/docker-compose-service.nix +++ b/src/nix/modules/service/docker-compose-service.nix @@ -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) {