{ config, lib, pkgs, ... }: { boot = lib.mkIf (!config.boot.isContainer) { initrd.systemd = { enable = true; emergencyAccess = config.secrets.secrets.global.users.root.passwordHash; extraBin.ip = "${pkgs.iproute}/bin/ip"; }; initrd.availableKernelModules = ["xhci_pci" "nvme" "r8169" "usb_storage" "usbhid" "sd_mod" "rtsx_pci_sdmmc" "ahci" "uas" "tpm_crb"]; supportedFilesystems = ["ntfs"]; kernelModules = ["kvm-intel"]; kernelParams = [ "rd.luks.options=timeout=0" "rootflags=x-systemd.device-timeout=0" # NOTE: Add "rd.systemd.unit=rescue.target" to debug initrd #"rd.systemd.unit=rescue.target" ]; tmp.useTmpfs = true; loader.timeout = lib.mkDefault 2; }; }