1
0
forked from dan/liminix
This commit is contained in:
Arnout Engelen 2024-12-21 13:35:04 +01:00
parent 27d8e6cd98
commit 833d05dc58
No known key found for this signature in database
GPG Key ID: 061107B0F74A6DAA

View File

@ -48,7 +48,7 @@
phases = ["installPhase"];
installPhase = ''
mkdir $out
cp ${pkgs.linux-firmware}/lib/firmware/mediatek/{mt7915,mt7615,mt7986_eeprom_mt7976}* $out
cp ${pkgs.linux-firmware}/lib/firmware/mediatek/{mt7915,mt7615,mt7986_eeprom_mt7976,mt7981}* $out
'';
};
in {
@ -527,6 +527,20 @@
ZSTD_COMMON="y";
ZSTD_COMPRESS="y";
ZSTD_DECOMPRESS="y";
# from DEVICE_PACKAGES in the openwrt_one section of
# target/linux/mediatek/image/filogic.mk: chop off the
# 'kmod-' prefix and search for 'KernelPackage/...'
# in package/kernel/linux/modules/*.mk, also add
# modules to kmodloader targets below
AIR_EN8811H_PHY="m";
RTC_DRV_PCF8563="m";
NVME_CORE="m";
BLK_DEV_NVME="m";
NVME_MULTIPATH="n";
NVME_HWMON="y";
# ???
AQUANTIA_PHY="m";
MT798X_WMAC="y";
} // lib.optionalAttrs (config.system.service ? watchdog) {
RALINK_WDT = "y"; # watchdog
MT7621_WDT = "y"; # or it might be this one
@ -534,6 +548,7 @@
conditionalConfig = {
WLAN = {
MT7915E = "m";
#MT7996E = "m";
};
};
};
@ -565,6 +580,12 @@
mac80211 = pkgs.kmodloader.override {
targets = [
"mt7915e"
"air_en8811h"
"rtc-pcf8563"
"nvme_core"
"nvme"
#"mt7996e"
"aquantia"
];
inherit (config.system.outputs) kernel;
};