2026-05-28 11:30:05 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
boot = {
|
|
|
|
|
loader = {
|
|
|
|
|
grub = {
|
|
|
|
|
enable = true;
|
|
|
|
|
efiSupport = true;
|
|
|
|
|
efiInstallAsRemovable = true;
|
|
|
|
|
enableCryptodisk = true;
|
|
|
|
|
device = "nodev";
|
|
|
|
|
extraConfig = ''
|
|
|
|
|
source (crypto0)/os/arch/boot/grub/grub.cfg
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
efi.efiSysMountPoint = "/boot/efi";
|
|
|
|
|
};
|
|
|
|
|
initrd = {
|
|
|
|
|
luks = {
|
|
|
|
|
devices.safe = {
|
|
|
|
|
device = "/dev/disk/by-uuid/16fe9b20-c31d-4b51-9b06-670713597c07";
|
|
|
|
|
preLVM = true;
|
|
|
|
|
bypassWorkqueues = true;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
systemd = {
|
|
|
|
|
initrdBin = with pkgs; [
|
|
|
|
|
cryptsetup
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
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-06-03 14:58:19 +02:00
|
|
|
kernel.sysctl."kernel.sysrq" = 1;
|
2026-05-28 11:30:05 +02:00
|
|
|
};
|
|
|
|
|
}
|