Skip to content

Commit

Permalink
Merge pull request #108932 from Atemu/iso-image-compress-filter
Browse files Browse the repository at this point in the history
iso-image: enable XZ compress filter
  • Loading branch information
kevincox committed Jan 15, 2021
2 parents 1497071 + 2fcab51 commit bb96017
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion nixos/modules/installer/cd-dvd/iso-image.nix
Expand Up @@ -425,7 +425,12 @@ in
};

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 = ''
Compression settings to use for the squashfs nix store.
'';
Expand Down

0 comments on commit bb96017

Please sign in to comment.