mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-07 18:38:44 +08:00
Add config for Librem 5
This commit is contained in:
committed by
Jörg Thalheim
parent
50dc4ef928
commit
9070d2340c
64
purism/librem/5r4/initrd.nix
Normal file
64
purism/librem/5r4/initrd.nix
Normal file
@@ -0,0 +1,64 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
lib.mkIf config.hardware.librem5.customInitrdModules {
|
||||
boot.initrd = {
|
||||
kernelModules = [
|
||||
"bq25890_charger"
|
||||
"dwc3"
|
||||
"imx_dcss"
|
||||
"imx_sdma"
|
||||
"mtdblock"
|
||||
"ofpart"
|
||||
"phy_fsl_imx8mq_usb"
|
||||
"snvs_pwrkey"
|
||||
"spi_nor"
|
||||
"tps6598x"
|
||||
"xhci_hcd"
|
||||
"usbcore"
|
||||
"usb_storage"
|
||||
"uas"
|
||||
"xhci_plat_hcd"
|
||||
];
|
||||
# Not all default modules (e.g. SATA ones) are present in Librem 5 kernel fork
|
||||
includeDefaultModules = false;
|
||||
availableKernelModules = [
|
||||
"ahci"
|
||||
|
||||
"sd_mod"
|
||||
"sr_mod"
|
||||
|
||||
"mmc_block"
|
||||
|
||||
"uhci_hcd"
|
||||
"ehci_hcd"
|
||||
"ehci_pci"
|
||||
"ohci_hcd"
|
||||
"ohci_pci"
|
||||
"xhci_pci"
|
||||
"usbhid"
|
||||
"hid_generic"
|
||||
"hid_lenovo"
|
||||
"hid_apple"
|
||||
"hid_roccat"
|
||||
"hid_logitech_hidpp"
|
||||
"hid_logitech_dj"
|
||||
"hid_microsoft"
|
||||
"hid_cherry"
|
||||
|
||||
"bq25890_charger"
|
||||
"dwc3"
|
||||
"imx_dcss"
|
||||
"imx_sdma"
|
||||
"mtdblock"
|
||||
"ofpart"
|
||||
"phy_fsl_imx8mq_usb"
|
||||
"snvs_pwrkey"
|
||||
"spi_nor"
|
||||
"tps6598x"
|
||||
"xhci_hcd"
|
||||
"usbcore"
|
||||
"usb_storage"
|
||||
"uas"
|
||||
"xhci_plat_hcd"
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user