Skip to content

Commit

Permalink
nixos/iso-image: Compress squashfs with zstd 19
Browse files Browse the repository at this point in the history
  • Loading branch information
ElvishJerricco committed Aug 31, 2024
1 parent 36a13f9 commit 49192ef
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions nixos/modules/installer/cd-dvd/iso-image.nix
Original file line number Diff line number Diff line change
Expand Up @@ -506,12 +506,7 @@ in
};

isoImage.squashfsCompression = mkOption {
default = with pkgs.stdenv.hostPlatform; "xz -Xdict-size 100% "
+ lib.optionalString isx86 "-Xbcj x86"
# Untested but should also reduce size for these platforms
+ lib.optionalString isAarch "-Xbcj arm"
+ lib.optionalString (isPower && is32bit && isBigEndian) "-Xbcj powerpc"
+ lib.optionalString (isSparc) "-Xbcj sparc";
default = "zstd -Xcompression-level 19";
type = lib.types.nullOr lib.types.str;
description = ''
Compression settings to use for the squashfs nix store.
Expand Down

0 comments on commit 49192ef

Please sign in to comment.