# REF: https://github.com/t2linux/nixos-t2-iso { inputs, t2pkgs, ... } @ args: { imports = [ (import inputs.nixos-hardware.nixosModules.apple-t2 (args // {pkgs = t2pkgs;})) ]; nix.settings = { trusted-substituters = [ "https://t2linux.cachix.org" ]; trusted-public-keys = [ "t2linux.cachix.org-1:P733c5Gt1qTcxsm+Bae0renWnT8OLs0u9+yfaK2Bejw=" ]; }; # cerulean channels configuration nixpkgs.channels.t2pkgs = { source = inputs.nixpkgs-t2-firmware; config = { allowUnfree = true; allowBroken = false; }; 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 # get-apple-firmware # ]; # 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"; # }; # }; # }; }