1
0
Fork 0
forked from UniverseBow/flake

add t2 firmware substitutor

This commit is contained in:
do butterflies cry? 2026-03-27 13:05:49 +10:00
parent 69eb9a1a93
commit b9992fa47e
Signed by: cry
GPG key ID: F68745A836CA0412
2 changed files with 11 additions and 8 deletions

View file

@ -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:

View file

@ -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