Merge branch 'mt6639' into nix

This commit is contained in:
Tom Alexander
2026-10-25 16:47:12 -04:00

View File

@@ -283,6 +283,20 @@ in
(disableOptimizations "nototools") # Needs to use the same version of python as the zopfli package (disableOptimizations "nototools") # Needs to use the same version of python as the zopfli package
]; ];
hardware.firmware =
let
mt6639_bt_firmware = builtins.fetchurl {
url = "https://gitlab.com/kernel-firmware/linux-firmware/-/raw/77ad2a92acf2ac3e5ea47432b43d925ff99db909/mediatek/mt7927/BT_RAM_CODE_MT6639_2_1_hdr.bin";
sha256 = "0xmwzc7xdgywxps488hs6hqjsp4i665ingax530qb765l2cmr736";
};
in
[
(pkgs.runCommand "mediatek-custom-firmware" { } ''
mkdir -p $out/lib/firmware/mediatek
cp ${mt6639_bt_firmware} $out/lib/firmware/mediatek/BT_RAM_CODE_MT6639_2_1_hdr.bin
'')
];
# This option defines the first version of NixOS you have installed on this particular machine, # This option defines the first version of NixOS you have installed on this particular machine,
# and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions. # and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.
# #