From c942b2be09f3113411f8d07cbd63c7df9795602c Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Sat, 7 Sep 2024 22:30:51 +0200 Subject: [PATCH] feat(initramfs): enable zstd compression Busybox is still 3MB. Signed-off-by: Raito Bezarius --- modules/outputs/initramfs.nix | 2 +- pkgs/kernel/default.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/outputs/initramfs.nix b/modules/outputs/initramfs.nix index c666c77..b1e0ea8 100644 --- a/modules/outputs/initramfs.nix +++ b/modules/outputs/initramfs.nix @@ -36,7 +36,7 @@ in kernel.config = { BLK_DEV_INITRD = "y"; INITRAMFS_SOURCE = builtins.toJSON "${config.system.outputs.initramfs}"; -# INITRAMFS_COMPRESSION_LZO = "y"; + INITRAMFS_COMPRESSION_ZSTD = "y"; }; system.outputs = { diff --git a/pkgs/kernel/default.nix b/pkgs/kernel/default.nix index 4ddf1dd..6891384 100644 --- a/pkgs/kernel/default.nix +++ b/pkgs/kernel/default.nix @@ -23,7 +23,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [buildPackages.stdenv.cc] ++ (with buildPackages.pkgs; [ rsync bc bison flex pkg-config - openssl ncurses.all perl + openssl ncurses.all perl zstd ]); CC = "${stdenv.cc.bintools.targetPrefix}gcc"; HOSTCC = with buildPackages.pkgs;