Skip to content

Commit

Permalink
fix(containers): parameterize compressor
Browse files Browse the repository at this point in the history
Signed-off-by: Cameron Smith <[email protected]>
  • Loading branch information
cameronraysmith committed Jul 6, 2024
1 parent 1ec7f2f commit 4b7b354
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion containers/nix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
, nixConf ? { }
, flake-registry ? null
, fromImage ? null
, compressor ? "zstd"
, extraContents ? [ ]
, extraExtraCommands ? ""
, extraFakeRootCommands ? ""
Expand Down Expand Up @@ -367,7 +368,7 @@ pkgs.dockerTools.buildLayeredImageWithNixDb {
inherit (storeOwner) uid gid uname gname;

contents = [ baseSystem ] ++ extraContents;
compressor = "zstd";
compressor = compressor;
extraCommands = ''
rm -rf nix-support
ln -s /nix/var/nix/profiles nix/var/nix/gcroots/profiles
Expand Down

0 comments on commit 4b7b354

Please sign in to comment.