1 # This module enables all hardware supported by NixOS: i.e., all
2 # firmware is included, and all devices from which one may boot are
3 # enabled in the initrd. Its primary use is in the NixOS installation
8 platform = pkgs.stdenv.hostPlatform;
12 # The initrd has to contain any module that might be necessary for
13 # supporting the most important parts of HW like drives.
14 boot.initrd.availableKernelModules =
15 [ # SATA/PATA support.
20 "sata_inic162x" "sata_nv" "sata_promise" "sata_qstor"
21 "sata_sil" "sata_sil24" "sata_sis" "sata_svw" "sata_sx4"
22 "sata_uli" "sata_via" "sata_vsc"
24 "pata_ali" "pata_amd" "pata_artop" "pata_atiixp" "pata_efar"
25 "pata_hpt366" "pata_hpt37x" "pata_hpt3x2n" "pata_hpt3x3"
26 "pata_it8213" "pata_it821x" "pata_jmicron" "pata_marvell"
27 "pata_mpiix" "pata_netcell" "pata_ns87410" "pata_oldpiix"
28 "pata_pcmcia" "pata_pdc2027x" "pata_qdi" "pata_rz1000"
29 "pata_serverworks" "pata_sil680" "pata_sis"
30 "pata_sl82c105" "pata_triflex" "pata_via"
33 # SCSI support (incomplete).
34 "3w-9xxx" "3w-xxxx" "aic79xx" "aic7xxx" "arcmsr" "hpsa"
36 # USB support, especially for booting from USB CD-ROM
46 # Firewire support. Not tested.
49 # Virtio (QEMU, KVM etc.) support.
50 "virtio_net" "virtio_pci" "virtio_mmio" "virtio_blk" "virtio_scsi" "virtio_balloon" "virtio_console"
53 "mptspi" "vmxnet3" "vsock"
54 ] ++ lib.optional platform.isx86 "vmw_balloon"
55 ++ lib.optionals (pkgs.stdenv.hostPlatform.isi686 || pkgs.stdenv.hostPlatform.isx86_64) [
56 "vmw_vmci" "vmwgfx" "vmw_vsock_vmci_transport"
60 ] ++ lib.optionals pkgs.stdenv.hostPlatform.isAarch [
62 # Required for early KMS
64 "sun8i-mixer" # Audio, but required for kms
66 # PWM for the backlight
71 ] ++ lib.optionals pkgs.stdenv.hostPlatform.isAarch64 [
72 # Most of the following falls into two categories:
73 # - early KMS / early display
74 # - early storage (e.g. USB) support
88 # Misc. uncategorized hardware
90 # Used for some platform's integrated displays
94 # Power supply drivers, some platforms need them for USB
104 "reset-raspberrypi" # Triggers USB chip firmware load.
106 # Misc "weak" dependencies
108 "analogix-anx6345" # For DP or eDP (e.g. integrated display)
111 # Include lots of firmware.
112 hardware.enableRedistributableFirmware = true;
115 [ ../hardware/network/zydas-zd1211.nix ];