mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-12 04:59:23 +08:00
add usbip to initrd
This commit is contained in:
@@ -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
|
||||
(
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user