From 0b72b7040993d24d89be179cff4ce5d82b75f996 Mon Sep 17 00:00:00 2001 From: ozwaldorf Date: Wed, 13 Nov 2024 13:03:53 -0500 Subject: [PATCH] feat(sgxGramineContainer): expose maxLayers argument from image builder --- overlays/libTee/sgxGramineContainer.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/overlays/libTee/sgxGramineContainer.nix b/overlays/libTee/sgxGramineContainer.nix index e275a66..fa308e7 100644 --- a/overlays/libTee/sgxGramineContainer.nix +++ b/overlays/libTee/sgxGramineContainer.nix @@ -22,6 +22,7 @@ , sigFile ? null , extendedPackages ? [ ] , customRecursiveMerge ? null +, maxLayers ? 100 }: assert lib.assertMsg (!(isAzure && sgx_default_qcnl_conf != null)) "sgx_default_qcnl_conf can't be set for Azure"; let @@ -201,6 +202,7 @@ let inherit tag; inherit contents; inherit fromImage; + inherit maxLayers; includeStorePaths = false; extraCommands = (mkNixStore contents) + '' @@ -231,6 +233,7 @@ let inherit config; inherit tag; inherit fromImage; + inherit maxLayers; includeStorePaths = false; extraCommands = '' @@ -247,6 +250,7 @@ let inherit tag; inherit config; inherit fromImage; + inherit maxLayers; contents = extendedContents; }; in