diff --git a/nix/configuration/configuration.nix b/nix/configuration/configuration.nix index 4f08f77..3614b41 100644 --- a/nix/configuration/configuration.nix +++ b/nix/configuration/configuration.nix @@ -283,6 +283,20 @@ in (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, # and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions. #