1
0
Fork 0
forked from UniverseBow/flake
flake-ooni/hosts/modules/core/t2-firmware.nix

35 lines
637 B
Nix
Raw Normal View History

2026-03-26 16:28:53 +10:00
{
inputs,
pkgs,
...
}: {
imports = [
inputs.nixos-hardware.nixosModules.apple-t2
];
environment.systemPackages = with pkgs; [
# t2-firmware dependencies
# REF: https://github.com/t2linux/nixos-t2-iso
python3
dmg2img
2026-03-27 12:15:00 +10:00
# get-apple-firmware
2026-03-26 16:28:53 +10:00
];
2026-03-27 12:15:00 +10:00
hardware = {
apple.touchBar.enable = true;
# REF: https://github.com/NixOS/nixos-hardware/blob/master/apple/t2/default.nix
apple-t2 = {
# the macbook does not have an AMD dGPU (iGPU)
enableIGPU = false;
kernelChannel = "stable";
firmware = {
enable = true;
version = "sonoma";
};
};
};
2026-03-26 16:28:53 +10:00
}