Files
nix-config/systems/x86_64-linux/jallen-nas/boot.nix
mjallen18 f111b1c725 up llama
2026-04-05 13:25:07 -05:00

31 lines
681 B
Nix
Executable File

{
pkgs,
...
}:
let
kernel = pkgs.cachyosKernels.linuxPackages-cachyos-latest-lto-zen4;
# kernel = pkgs.linuxPackages_latest;
in
{
# Configure bootloader with lanzaboot and secureboot
boot = {
# Override kernel to latest
kernelPackages = kernel;
kernelParams = [ "amd_iommu=pgtbl_v2" ];
initrd = {
supportedFilesystems = [ "bcachefs" ];
# clevis = {
# enable = false;
# devices = {
# "/dev/disk/by-label/nas_pool".secretFile = "/etc/clevis/nas_pool.jwe";
# };
# };
};
# Enable binfmt emulation for ARM
binfmt.emulatedSystems = [ "aarch64-linux" ]; # --argstr system aarch64-linux
};
}