From 667a93d30642e51dacb17937d57e8affe433c729 Mon Sep 17 00:00:00 2001 From: Cameron Smith Date: Sat, 6 Jul 2024 18:03:35 -0400 Subject: [PATCH] fix(nix): compress layers with zstandard Signed-off-by: Cameron Smith --- nix/containers/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nix/containers/default.nix b/nix/containers/default.nix index a4da23663..bf2a36420 100644 --- a/nix/containers/default.nix +++ b/nix/containers/default.nix @@ -165,6 +165,7 @@ # created = "now"; maxLayers = 118; + compressor = "zstd"; contents = devcontainerContents; config = makeContainerConfig { @@ -182,6 +183,7 @@ # created = "now"; maxLayers = 118; + compressor = "zstd"; contents = devcontainerContents; # runAsRoot = '' @@ -209,6 +211,7 @@ in rec { name = "${packageName}"; tag = "latest"; maxLayers = 121; + compressor = "zstd"; fromImage = baseContainerImage; contents = [packageGitRepoToContainer]; config = { @@ -224,6 +227,7 @@ in rec { name = "${packageName}dev"; tag = "latest"; maxLayers = 121; + compressor = "zstd"; fromImage = baseDevContainerImage; contents = [packageGitRepoToContainer]; config = {