Skip to content

Commit

Permalink
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/modules/containers.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ let
mkDerivation = cfg: nix2container.nix2container.buildImage {
name = cfg.name;
tag = cfg.version;
maxLayers = cfg.maxLayers;
copyToRoot = [
(pkgs.runCommand "create-paths" { } ''
mkdir -p $out/tmp
Expand Down Expand Up @@ -164,6 +165,11 @@ let
docker run -it ${config.name}:${config.version} "$@"
'';
};

maxLayers = lib.mkOption {
type = types.int;
default = 1;
};
};
});
in
Expand Down

0 comments on commit e2895ef

Please sign in to comment.