diff --git a/src/modules/containers.nix b/src/modules/containers.nix index 9e31eaae0..8b7d95f0f 100644 --- a/src/modules/containers.nix +++ b/src/modules/containers.nix @@ -28,7 +28,10 @@ let source ${shell.envScript} - exec "$@" + # expand any envvars before exec + cmd="`echo "$@"|${pkgs.envsubst}/bin/envsubst`" + + exec $cmd ''; mkDerivation = cfg: nix2container.nix2container.buildImage { name = cfg.name;