add usbip to initrd

This commit is contained in:
2023-08-01 14:49:03 +08:00
parent 71ae275527
commit 7e84c10805
2 changed files with 15 additions and 3 deletions

View File

@@ -125,7 +125,18 @@ inputs:
)
# decrypt.manual
(
mkIf (fileSystems.decrypt.manual.enable) { boot.initrd.luks.forceLuksSupportInInitrd = true; }
mkIf (fileSystems.decrypt.manual.enable)
{
boot.initrd =
{
luks.forceLuksSupportInInitrd = true;
systemd.extraBin =
{
cryptsetup = "${inputs.pkgs.cryptsetup.bin}/bin/cryptsetup";
usbip = "${inputs.config.boot.kernelPackages.usbip}/bin/usbip";
};
};
}
)
# mdadm
(

View File

@@ -20,8 +20,9 @@ inputs:
kernelModules = [ "br_netfilter" ];
initrd.availableKernelModules =
[
"ahci" "bfq" "failover" "net_failover" "nls_cp437" "nls_iso8859-1" "nvme" "sr_mod" "usbhid" "usb_storage"
"virtio" "virtio_blk" "virtio_net" "virtio_pci" "xhci_pci" "virtio_ring" "cryptd" "crypto_simd" "libaes"
"ahci" "bfq" "failover" "net_failover" "nls_cp437" "nls_iso8859-1" "nvme" "sr_mod" "usbcore" "usbhid"
"usbip-core" "usb-common" "usb_storage" "vhci-hcd" "virtio" "virtio_blk" "virtio_net" "virtio_pci" "xhci_pci"
"virtio_ring" "cryptd" "crypto_simd" "libaes"
];
kernelParams = [ "delayacct" "acpi_osi=Linux" ];
kernelPackages = inputs.pkgs.linuxPackagesFor (inputs.pkgs.linuxPackages_xanmod.kernel.override rec