Files
nix-config/systems/x86_64-linux/jallen-nas/boot.nix
mjallen18 9737b3af9f idk man
2026-03-13 13:38:53 -05:00

29 lines
601 B
Nix
Executable File

{
pkgs,
namespace,
...
}:
let
kernel = pkgs.${namespace}.linuxPackages_cachyos-lto-znver4;
in
{
# Configure bootloader with lanzaboot and secureboot
boot = {
# Override kernel to latest
kernelPackages = kernel;
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
};
}