From b9992fa47eddbeb1f44088973f22ba99e8543aaa Mon Sep 17 00:00:00 2001 From: _cry64 Date: Fri, 27 Mar 2026 13:05:49 +1000 Subject: [PATCH] add t2 firmware substitutor --- flake.nix | 3 +++ hosts/modules/core/t2-firmware.nix | 16 ++++++++-------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/flake.nix b/flake.nix index cfb6e7f..21ad427 100644 --- a/flake.nix +++ b/flake.nix @@ -71,6 +71,9 @@ nixConfig = { extra-experimental-features = "pipe-operators"; + extra-trusted-substituters = ["https://cache.soopy.moe"]; + extra-substituters = ["https://cache.soopy.moe"]; + extra-trusted-public-keys = ["cache.soopy.moe-1:0RZVsQeR+GOh0VQI9rvnHz55nVXkFardDqfm4+afjPo="]; }; outputs = {cerulean, ...} @ inputs: diff --git a/hosts/modules/core/t2-firmware.nix b/hosts/modules/core/t2-firmware.nix index 086ff80..345e969 100644 --- a/hosts/modules/core/t2-firmware.nix +++ b/hosts/modules/core/t2-firmware.nix @@ -7,15 +7,15 @@ inputs.nixos-hardware.nixosModules.apple-t2 ]; - environment.systemPackages = with pkgs; [ - # t2-firmware dependencies - # REF: https://github.com/t2linux/nixos-t2-iso - python3 - dmg2img - # get-apple-firmware - ]; + nix.settings = { + trusted-substituters = [ + "https://t2linux.cachix.org" + ]; + trusted-public-keys = [ + "t2linux.cachix.org-1:P733c5Gt1qTcxsm+Bae0renWnT8OLs0u9+yfaK2Bejw=" + ]; + }; - hardware = { apple.touchBar.enable = true; # REF: https://github.com/NixOS/nixos-hardware/blob/master/apple/t2/default.nix