Skip to content

Commit b6924a7

Browse files
nazarewkblaggacao
authored andcommitted
feat: configure maxLayers during mkDevOCI
1 parent 79f208f commit b6924a7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib/ops/mkDevOCI.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ in
3131
config: Additional options to pass to nix2container.buildImage's config.
3232
options: Additional options to pass to nix2container.buildImage.
3333
preLoadStorePaths: A list of store paths to preload/copy into the container.
34+
maxLayers: Number of layers to use during nix2container.buildLayer.
3435
3536
Returns:
3637
An OCI container image (created with nix2container).
@@ -50,6 +51,7 @@ in
5051
labels ? {},
5152
config ? {},
5253
options ? {},
54+
maxLayers ? 100,
5355
}: let
5456
# vscode defaults to "vscode" as the user
5557
user' =
@@ -227,7 +229,7 @@ in
227229
# Required for fetching additional packages
228230
nixpkgs.cacert
229231
];
230-
maxLayers = 100;
232+
inherit maxLayers;
231233
})
232234
];
233235

0 commit comments

Comments
 (0)