diff --git a/hosts/modules/core/t2-firmware/brcm-firmware.nix b/hosts/modules/core/t2-firmware/brcm-firmware.nix deleted file mode 100644 index db6584c..0000000 --- a/hosts/modules/core/t2-firmware/brcm-firmware.nix +++ /dev/null @@ -1,25 +0,0 @@ -{ - stdenvNoCC, - get-apple-firmware, -}: -stdenvNoCC.mkDerivation (final: { - name = "brcm-firmware"; - src = ./firmware/brcm; - - installPhase = '' - mkdir -p $out/lib/firmware/brcm - cp ${final.src}/* "$out/lib/firmware/brcm" - ''; - - buildInputs = [ - get-apple-firmware - ]; - - buildPhase = '' - mkdir -p $out/bin - cp ${final.src} $out/bin/get-apple-firmware - chmod +x $out/bin/get-apple-firmware - - mkdir - ''; -}) diff --git a/hosts/modules/core/t2-firmware/default.nix b/hosts/modules/core/t2-firmware/default.nix index 9691719..e1655f7 100644 --- a/hosts/modules/core/t2-firmware/default.nix +++ b/hosts/modules/core/t2-firmware/default.nix @@ -1,6 +1,7 @@ # REF: https://github.com/t2linux/nixos-t2-iso { inputs, + pkgs, t2pkgs, ... } @ args: { @@ -27,15 +28,10 @@ overlays = [ (self: super: { get-apple-firmware = super.callPackage ./get-apple-firmware.nix {}; - brcm-firmware = super.callPackage ./brcm-firmware.nix {}; }) ]; }; - hardware.firmware = [ - t2pkgs.brcm-firmware - ]; - # environment.systemPackages = with base; [ # python3 # dmg2img diff --git a/hosts/modules/core/t2-firmware/get-apple-firmware.nix b/hosts/modules/core/t2-firmware/get-apple-firmware.nix index ceb952a..7b25cce 100644 --- a/hosts/modules/core/t2-firmware/get-apple-firmware.nix +++ b/hosts/modules/core/t2-firmware/get-apple-firmware.nix @@ -2,9 +2,6 @@ stdenvNoCC, fetchurl, lib, - python3, - dmg2img, - curl, }: stdenvNoCC.mkDerivation (final: { pname = "get-apple-firmware"; @@ -16,12 +13,6 @@ stdenvNoCC.mkDerivation (final: { dontUnpack = true; - buildInputs = [ - curl - dmg2img - python3 - ]; - buildPhase = '' mkdir -p $out/bin cp ${final.src} $out/bin/get-apple-firmware