Merge pull request #108932 from Atemu/iso-image-compress-filter

iso-image: enable XZ compress filter
This commit is contained in:
Kevin Cox
2021-01-15 11:32:21 -05:00
committed by GitHub
+6 -1
View File
@@ -425,7 +425,12 @@ in
}; };
isoImage.squashfsCompression = mkOption { isoImage.squashfsCompression = mkOption {
default = "xz -Xdict-size 100%"; default = with pkgs.stdenv.targetPlatform; "xz -Xdict-size 100% "
+ lib.optionalString (isx86_32 || isx86_64) "-Xbcj x86"
# Untested but should also reduce size for these platforms
+ lib.optionalString (isAarch32 || isAarch64) "-Xbcj arm"
+ lib.optionalString (isPowerPC) "-Xbcj powerpc"
+ lib.optionalString (isSparc) "-Xbcj sparc";
description = '' description = ''
Compression settings to use for the squashfs nix store. Compression settings to use for the squashfs nix store.
''; '';