From 604b9553248c59d7ee5cc8cbca61b680eda01508 Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Sun, 5 Oct 2025 17:57:54 +0000 Subject: [PATCH] nixos/netboot: use initrd.compressorArgs on netbootRamdisk - because already boot.initrd.compressor is used, one could expect compressorArgs is also used - this allows users to customize the compression speed for netboot builds --- nixos/modules/installer/netboot/netboot.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/installer/netboot/netboot.nix b/nixos/modules/installer/netboot/netboot.nix index 052d3ea50fc0..a4d9664a5531 100644 --- a/nixos/modules/installer/netboot/netboot.nix +++ b/nixos/modules/installer/netboot/netboot.nix @@ -96,7 +96,7 @@ with lib; # Create the initrd system.build.netbootRamdisk = pkgs.makeInitrdNG { - inherit (config.boot.initrd) compressor; + inherit (config.boot.initrd) compressor compressorArgs; prepend = [ "${config.system.build.initialRamdisk}/initrd" ]; contents = [