Skip to content

Commit

Permalink
feat: configure maxLayers during mkDevOCI
Browse files Browse the repository at this point in the history
  • Loading branch information
nazarewk authored and blaggacao committed May 8, 2024
1 parent 79f208f commit b6924a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/ops/mkDevOCI.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ in
config: Additional options to pass to nix2container.buildImage's config.
options: Additional options to pass to nix2container.buildImage.
preLoadStorePaths: A list of store paths to preload/copy into the container.
maxLayers: Number of layers to use during nix2container.buildLayer.
Returns:
An OCI container image (created with nix2container).
Expand All @@ -50,6 +51,7 @@ in
labels ? {},
config ? {},
options ? {},
maxLayers ? 100,
}: let
# vscode defaults to "vscode" as the user
user' =
Expand Down Expand Up @@ -227,7 +229,7 @@ in
# Required for fetching additional packages
nixpkgs.cacert
];
maxLayers = 100;
inherit maxLayers;
})
];

Expand Down

0 comments on commit b6924a7

Please sign in to comment.