nixos-config/sets/aarch64-zboot.nix

22 lines
437 B
Nix
Raw Normal View History

2024-03-02 03:13:17 +00:00
{ lib, ... }:
{
nixpkgs.hostPlatform = lib.recursiveUpdate lib.systems.platforms.aarch64-multiplatform {
linux-kernel = {
target = "vmlinuz.efi";
installTarget = "zinstall";
};
2024-03-02 03:13:17 +00:00
};
2024-03-02 03:13:17 +00:00
boot.kernelPatches = [
{
name = "zboot-enable";
patch = null;
extraStructuredConfig = with lib.kernel; {
EFI_ZBOOT = yes;
KERNEL_ZSTD = yes;
DEBUG_INFO_BTF = no;
};
}
];
}