nixos/containers: fix handling of cfg.additionalCapabilities

This commit is contained in:
Enno Lohmeier 2019-11-07 20:35:17 +01:00
parent 31315ec730
commit fc7070d133
No known key found for this signature in database
GPG Key ID: 4BAA24E0BBA5F1AF

View File

@ -149,7 +149,7 @@ let
--setenv PATH="$PATH" \
${optionalString cfg.ephemeral "--ephemeral"} \
${if cfg.additionalCapabilities != null && cfg.additionalCapabilities != [] then
''--capability="${concatStringsSep " " cfg.additionalCapabilities}"'' else ""
''--capability="${concatStringsSep "," cfg.additionalCapabilities}"'' else ""
} \
${if cfg.tmpfs != null && cfg.tmpfs != [] then
''--tmpfs=${concatStringsSep " --tmpfs=" cfg.tmpfs}'' else ""