nixos/machines/niczos/bootloader.nix

60 lines
1.1 KiB
Nix
Raw Permalink Normal View History

2026-06-15 11:50:02 +02:00
{
pkgs,
...
}:
2026-05-28 11:30:05 +02:00
{
boot = {
loader = {
grub = {
enable = true;
efiSupport = true;
efiInstallAsRemovable = true;
enableCryptodisk = true;
device = "nodev";
extraConfig = ''
2026-06-15 11:50:02 +02:00
source (crypto0)/os/arch/boot/grub/grub.cfg
2026-05-28 11:30:05 +02:00
'';
};
efi.efiSysMountPoint = "/boot/efi";
};
initrd = {
luks = {
devices.safe = {
device = "/dev/disk/by-uuid/16fe9b20-c31d-4b51-9b06-670713597c07";
preLVM = true;
bypassWorkqueues = true;
};
};
systemd = {
2026-06-15 11:50:02 +02:00
initrdBin = with pkgs; [
cryptsetup
];
2026-05-28 11:30:05 +02:00
};
2026-06-15 11:50:02 +02:00
kernelModules = [
"cryptd"
"uas"
"usbcore"
"usb_storage"
"vfat"
"nls_cp437"
"nls_iso8859_1"
];
availableKernelModules = [
"xhci_pci"
"nvme"
"usbhid"
"usb_storage"
"rtsx_pci_sdmmc"
"dm_crypt"
"crypto_user"
];
supportedFilesystems = [
"btrfs"
"vfat"
"luks"
];
2026-05-28 11:30:05 +02:00
};
kernel.sysctl."kernel.sysrq" = 1;
2026-05-28 11:30:05 +02:00
};
}