|
3 | 3 | # enabled in the initrd. Its primary use is in the NixOS installation |
4 | 4 | # CDs. |
5 | 5 |
|
6 | | -{ config, lib, pkgs, ... }: |
| 6 | +{ |
| 7 | + config, |
| 8 | + lib, |
| 9 | + pkgs, |
| 10 | + ... |
| 11 | +}: |
7 | 12 | let |
8 | 13 | platform = pkgs.stdenv.hostPlatform; |
9 | 14 | in |
|
18 | 23 | # The initrd has to contain any module that might be necessary for |
19 | 24 | # supporting the most important parts of HW like drives. |
20 | 25 | boot.initrd.availableKernelModules = |
21 | | - [ # SATA/PATA support. |
| 26 | + [ |
| 27 | + # SATA/PATA support. |
22 | 28 | "ahci" |
23 | 29 |
|
24 | 30 | "ata_piix" |
25 | 31 |
|
26 | | - "sata_inic162x" "sata_nv" "sata_promise" "sata_qstor" |
27 | | - "sata_sil" "sata_sil24" "sata_sis" "sata_svw" "sata_sx4" |
28 | | - "sata_uli" "sata_via" "sata_vsc" |
29 | | - |
30 | | - "pata_ali" "pata_amd" "pata_artop" "pata_atiixp" "pata_efar" |
31 | | - "pata_hpt366" "pata_hpt37x" "pata_hpt3x2n" "pata_hpt3x3" |
32 | | - "pata_it8213" "pata_it821x" "pata_jmicron" "pata_marvell" |
33 | | - "pata_mpiix" "pata_netcell" "pata_ns87410" "pata_oldpiix" |
34 | | - "pata_pcmcia" "pata_pdc2027x" "pata_qdi" "pata_rz1000" |
35 | | - "pata_serverworks" "pata_sil680" "pata_sis" |
36 | | - "pata_sl82c105" "pata_triflex" "pata_via" |
| 32 | + "sata_inic162x" |
| 33 | + "sata_nv" |
| 34 | + "sata_promise" |
| 35 | + "sata_qstor" |
| 36 | + "sata_sil" |
| 37 | + "sata_sil24" |
| 38 | + "sata_sis" |
| 39 | + "sata_svw" |
| 40 | + "sata_sx4" |
| 41 | + "sata_uli" |
| 42 | + "sata_via" |
| 43 | + "sata_vsc" |
| 44 | + |
| 45 | + "pata_ali" |
| 46 | + "pata_amd" |
| 47 | + "pata_artop" |
| 48 | + "pata_atiixp" |
| 49 | + "pata_efar" |
| 50 | + "pata_hpt366" |
| 51 | + "pata_hpt37x" |
| 52 | + "pata_hpt3x2n" |
| 53 | + "pata_hpt3x3" |
| 54 | + "pata_it8213" |
| 55 | + "pata_it821x" |
| 56 | + "pata_jmicron" |
| 57 | + "pata_marvell" |
| 58 | + "pata_mpiix" |
| 59 | + "pata_netcell" |
| 60 | + "pata_ns87410" |
| 61 | + "pata_oldpiix" |
| 62 | + "pata_pcmcia" |
| 63 | + "pata_pdc2027x" |
| 64 | + "pata_qdi" |
| 65 | + "pata_rz1000" |
| 66 | + "pata_serverworks" |
| 67 | + "pata_sil680" |
| 68 | + "pata_sis" |
| 69 | + "pata_sl82c105" |
| 70 | + "pata_triflex" |
| 71 | + "pata_via" |
37 | 72 | "pata_winbond" |
38 | 73 |
|
39 | 74 | # SCSI support (incomplete). |
40 | | - "3w-9xxx" "3w-xxxx" "aic79xx" "aic7xxx" "arcmsr" "hpsa" |
| 75 | + "3w-9xxx" |
| 76 | + "3w-xxxx" |
| 77 | + "aic79xx" |
| 78 | + "aic7xxx" |
| 79 | + "arcmsr" |
| 80 | + "hpsa" |
41 | 81 |
|
42 | 82 | # USB support, especially for booting from USB CD-ROM |
43 | 83 | # drives. |
|
50 | 90 | "nvme" |
51 | 91 |
|
52 | 92 | # Firewire support. Not tested. |
53 | | - "ohci1394" "sbp2" |
| 93 | + "ohci1394" |
| 94 | + "sbp2" |
54 | 95 |
|
55 | 96 | # Virtio (QEMU, KVM etc.) support. |
56 | | - "virtio_net" "virtio_pci" "virtio_mmio" "virtio_blk" "virtio_scsi" "virtio_balloon" "virtio_console" |
| 97 | + "virtio_net" |
| 98 | + "virtio_pci" |
| 99 | + "virtio_mmio" |
| 100 | + "virtio_blk" |
| 101 | + "virtio_scsi" |
| 102 | + "virtio_balloon" |
| 103 | + "virtio_console" |
57 | 104 |
|
58 | 105 | # VMware support. |
59 | | - "mptspi" "vmxnet3" "vsock" |
60 | | - ] ++ lib.optional platform.isx86 "vmw_balloon" |
| 106 | + "mptspi" |
| 107 | + "vmxnet3" |
| 108 | + "vsock" |
| 109 | + ] |
| 110 | + ++ lib.optional platform.isx86 "vmw_balloon" |
61 | 111 | ++ lib.optionals (pkgs.stdenv.hostPlatform.isi686 || pkgs.stdenv.hostPlatform.isx86_64) [ |
62 | | - "vmw_vmci" "vmwgfx" "vmw_vsock_vmci_transport" |
| 112 | + "vmw_vmci" |
| 113 | + "vmwgfx" |
| 114 | + "vmw_vsock_vmci_transport" |
63 | 115 |
|
64 | 116 | # Hyper-V support. |
65 | 117 | "hv_storvsc" |
66 | | - ] ++ lib.optionals pkgs.stdenv.hostPlatform.isAarch [ |
| 118 | + ] |
| 119 | + ++ lib.optionals pkgs.stdenv.hostPlatform.isAarch [ |
67 | 120 | # Allwinner support |
68 | 121 | # Required for early KMS |
69 | 122 | "sun4i-drm" |
|
74 | 127 |
|
75 | 128 | # Broadcom |
76 | 129 | "vc4" |
77 | | - ] ++ lib.optionals pkgs.stdenv.hostPlatform.isAarch64 [ |
| 130 | + ] |
| 131 | + ++ lib.optionals pkgs.stdenv.hostPlatform.isAarch64 [ |
78 | 132 | # Most of the following falls into two categories: |
79 | 133 | # - early KMS / early display |
80 | 134 | # - early storage (e.g. USB) support |
|
0 commit comments