diff --git a/sets/aarch64-zboot.nix b/sets/aarch64-zboot.nix new file mode 100644 index 0000000..82a65ee --- /dev/null +++ b/sets/aarch64-zboot.nix @@ -0,0 +1,19 @@ +{ lib, ... }: { + nixpkgs.hostPlatform = + lib.recursiveUpdate lib.systems.platforms.aarch64-multiplatform { + linux-kernel = { + target = "vmlinuz.efi"; + installTarget = "zinstall"; + }; + }; + + boot.kernelPatches = [{ + name = "zboot-enable"; + patch = null; + extraStructuredConfig = with lib.kernel; { + EFI_ZBOOT = yes; + KERNEL_ZSTD = yes; + DEBUG_INFO_BTF = no; + }; + }]; +} diff --git a/system/mistmane/default.nix b/system/mistmane/default.nix index eb24aa8..2b0afb9 100644 --- a/system/mistmane/default.nix +++ b/system/mistmane/default.nix @@ -4,9 +4,10 @@ imports = [ ./boot-config.nix ./hardware-configuration.nix + ../../sets/aarch64-zboot.nix ../../sets/laptop.nix - ../../sets/workstation.nix ../../sets/sshd.nix + ../../sets/workstation.nix inputs.nixos-hardware.nixosModules.pine64-pinebook-pro ]; @@ -46,6 +47,6 @@ extraConfig = lib.mkForce "HandlePowerKey=lock"; }; - nixpkgs.hostPlatform = "aarch64-linux"; + nixpkgs.hostPlatform.system = "aarch64-linux"; system.stateVersion = "21.11"; }