mistmane: experiment for compressed kernel, might not worl

This commit is contained in:
Artemis Tosini 2024-01-23 18:15:11 +00:00
parent 8ee22a666d
commit 12312655b0
Signed by: artemist
GPG key ID: EE5227935FE3FF18
2 changed files with 22 additions and 2 deletions

19
sets/aarch64-zboot.nix Normal file
View file

@ -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;
};
}];
}

View file

@ -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";
}