diff options
author | Dominik Xaver Hörl <hoe.dom@gmx.de> | 2020-08-04 15:22:40 +0200 |
---|---|---|
committer | Dominik Xaver Hörl <hoe.dom@gmx.de> | 2020-08-04 21:22:01 +0200 |
commit | 7f5000c784320747ac6736d722a3d18fb1099727 (patch) | |
tree | d22336a063587545f86fdd29a4ef618cbbc3507a /nixos/modules/installer/cd-dvd/iso-image.nix | |
parent | 00501bd13401228b0f198da0cded5c4c08a19e83 (diff) | |
download | nixpkgs-7f5000c784320747ac6736d722a3d18fb1099727.tar nixpkgs-7f5000c784320747ac6736d722a3d18fb1099727.tar.gz nixpkgs-7f5000c784320747ac6736d722a3d18fb1099727.tar.bz2 nixpkgs-7f5000c784320747ac6736d722a3d18fb1099727.tar.lz nixpkgs-7f5000c784320747ac6736d722a3d18fb1099727.tar.xz nixpkgs-7f5000c784320747ac6736d722a3d18fb1099727.tar.zst nixpkgs-7f5000c784320747ac6736d722a3d18fb1099727.zip |
nixos/iso-image: make squashfs compression easily configurable
Diffstat (limited to 'nixos/modules/installer/cd-dvd/iso-image.nix')
-rw-r--r-- | nixos/modules/installer/cd-dvd/iso-image.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/nixos/modules/installer/cd-dvd/iso-image.nix b/nixos/modules/installer/cd-dvd/iso-image.nix index 1cd2252ecf2..405fbfa10db 100644 --- a/nixos/modules/installer/cd-dvd/iso-image.nix +++ b/nixos/modules/installer/cd-dvd/iso-image.nix @@ -417,6 +417,14 @@ in ''; }; + isoImage.squashfsCompression = mkOption { + default = "xz -Xdict-size 100%"; + description = '' + Compression settings to use for the squashfs nix store. + ''; + example = "zstd -Xcompression-level 6"; + }; + isoImage.edition = mkOption { default = ""; description = '' @@ -614,6 +622,7 @@ in # Create the squashfs image that contains the Nix store. system.build.squashfsStore = pkgs.callPackage ../../../lib/make-squashfs.nix { storeContents = config.isoImage.storeContents; + comp = config.isoImage.squashfsCompression; }; # Individual files to be included on the CD, outside of the Nix |