Interim version of trying to update Surface Go Wifi in-place

- Can't seem to d/l the K1535 board firmware directly from Killer Networking?
This commit is contained in:
mexisme
2021-02-07 00:55:27 +13:00
parent d6a1231181
commit 9a35571829
3 changed files with 51 additions and 1 deletions

View File

@@ -0,0 +1,29 @@
{stdenv, pkgs, firmwareLinuxNonfree, ...}:
let
repos = (pkgs.callPackage ../repos.nix {});
in
firmwareLinuxNonfree.overrideAttrs (old: rec {
pname = "microsoft-surface-go-firmware-linux-nonfree";
srcs = [
firmwareLinuxNonfree.src
repos.ath10k-firmware
];
sourceRoot = firmwareLinuxNonfree.src;
priority = 1;
dontMakeSourcesWritable = true;
postInstall = ''
# rm -v $out/lib/firmware/ath10k/{hw2.1,hw3.0}/board.bin
# rm -v $out/lib/firmware/ath10k/{hw2.1,hw3.0}/board2.bin
# cp $srcs[1] $out/lib/firmware/ath10k/hw2.1/
# cp $srcs[1] $out/lib/firmware/ath10k/hw3.0/
#TODO:
pwd
echo src = $src, srcs = $srcs
exit 1
'';
})

View File

@@ -2,5 +2,7 @@
{
hardware.enableAllFirmware = true;
hardware.firmware = [
# TODO: Wrap with an option:
(pkgs.callPackage ./ath10k.nix {})
];
}