From bf7de549b97ed64658b2d90d7a3f3c3cb0c64984 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Mon, 8 May 2023 11:50:06 +0000 Subject: [PATCH] nixos/iso-image: targetPlatform -> hostPlatform This is not a compiler, and therefore does not need to care about the target platform. --- nixos/modules/installer/cd-dvd/iso-image.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/installer/cd-dvd/iso-image.nix b/nixos/modules/installer/cd-dvd/iso-image.nix index ea17e2a705ed..fcdee1bc0960 100644 --- a/nixos/modules/installer/cd-dvd/iso-image.nix +++ b/nixos/modules/installer/cd-dvd/iso-image.nix @@ -473,7 +473,7 @@ in }; isoImage.squashfsCompression = mkOption { - default = with pkgs.stdenv.targetPlatform; "xz -Xdict-size 100% " + 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"