nix-config/modules/config/boot.nix

24 lines
541 B
Nix
Raw Normal View History

2023-09-11 00:21:02 +02:00
{
config,
lib,
...
}: {
boot = {
initrd.systemd = {
enable = true;
emergencyAccess = config.secrets.secrets.global.users.root.passwordHash;
};
initrd.availableKernelModules = ["xhci_pci" "nvme" "usb_storage" "usbhid" "sd_mod" "rtsx_pci_sdmmc" "ahci" "uas"];
supportedFilesystems = ["ntfs"];
kernelModules = ["kvm-intel"];
kernelParams = [
"rd.luks.options=timeout=0"
"rootflags=x-systemd.device-timeout=0"
];
tmp.useTmpfs = true;
loader.timeout = lib.mkDefault 2;
};
}