mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 13:40:28 +03:00
nixos/netboot: Compress squashfs with zstd 19
This commit is contained in:
parent
b6050e7349
commit
f34b9f5e60
1 changed files with 1 additions and 6 deletions
|
@ -9,12 +9,7 @@ with lib;
|
|||
options = {
|
||||
|
||||
netboot.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";
|
||||
description = ''
|
||||
Compression settings to use for the squashfs nix store.
|
||||
'';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue