mistmane: experiment for compressed kernel, might not worl
This commit is contained in:
parent
8ee22a666d
commit
12312655b0
19
sets/aarch64-zboot.nix
Normal file
19
sets/aarch64-zboot.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}];
|
||||||
|
}
|
|
@ -4,9 +4,10 @@
|
||||||
imports = [
|
imports = [
|
||||||
./boot-config.nix
|
./boot-config.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
../../sets/aarch64-zboot.nix
|
||||||
../../sets/laptop.nix
|
../../sets/laptop.nix
|
||||||
../../sets/workstation.nix
|
|
||||||
../../sets/sshd.nix
|
../../sets/sshd.nix
|
||||||
|
../../sets/workstation.nix
|
||||||
inputs.nixos-hardware.nixosModules.pine64-pinebook-pro
|
inputs.nixos-hardware.nixosModules.pine64-pinebook-pro
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -46,6 +47,6 @@
|
||||||
extraConfig = lib.mkForce "HandlePowerKey=lock";
|
extraConfig = lib.mkForce "HandlePowerKey=lock";
|
||||||
};
|
};
|
||||||
|
|
||||||
nixpkgs.hostPlatform = "aarch64-linux";
|
nixpkgs.hostPlatform.system = "aarch64-linux";
|
||||||
system.stateVersion = "21.11";
|
system.stateVersion = "21.11";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue