2025-02-07 11:48:15 +08:00
|
|
|
{
|
|
|
|
|
pkgs,
|
|
|
|
|
modulesPath,
|
|
|
|
|
nixos-hardware,
|
|
|
|
|
...
|
|
|
|
|
}:
|
2022-10-02 17:56:05 +03:00
|
|
|
|
|
|
|
|
{
|
2022-12-06 20:40:19 +03:00
|
|
|
imports = [
|
|
|
|
|
"${modulesPath}/installer/cd-dvd/channel.nix"
|
|
|
|
|
nixos-hardware.nixosModules.apple-t2
|
|
|
|
|
];
|
|
|
|
|
|
2022-10-04 20:30:05 +03:00
|
|
|
nix.settings = {
|
|
|
|
|
trusted-substituters = [
|
2022-10-02 17:56:05 +03:00
|
|
|
"https://t2linux.cachix.org"
|
|
|
|
|
];
|
2022-10-04 20:30:05 +03:00
|
|
|
trusted-public-keys = [
|
2022-10-02 17:56:05 +03:00
|
|
|
"t2linux.cachix.org-1:P733c5Gt1qTcxsm+Bae0renWnT8OLs0u9+yfaK2Bejw="
|
|
|
|
|
];
|
2024-04-25 02:29:35 +02:00
|
|
|
|
2025-02-07 11:48:15 +08:00
|
|
|
experimental-features = [
|
|
|
|
|
"nix-command"
|
|
|
|
|
"flakes"
|
|
|
|
|
];
|
2022-10-02 17:56:05 +03:00
|
|
|
};
|
2022-10-02 19:12:31 +03:00
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
git
|
2022-10-14 22:17:09 +03:00
|
|
|
python3
|
2024-06-09 22:27:44 +08:00
|
|
|
dmg2img
|
2025-02-27 20:17:31 +08:00
|
|
|
(callPackage ./pkgs/firmware-script.nix { })
|
2022-10-02 19:12:31 +03:00
|
|
|
];
|
2022-11-04 18:09:31 +03:00
|
|
|
|
2025-02-27 20:17:31 +08:00
|
|
|
# Don't actually let broken stuff sneak into the ISO. If ZFS breaks, it actually breaks building the kernel (module)
|
|
|
|
|
# due to an upstream check and this wouldn't do anything to stop that from happening.
|
|
|
|
|
## ZFS is (sometimes) broken and prevents building without this
|
|
|
|
|
## nixpkgs.config.allowBroken = true;
|
|
|
|
|
|
2025-02-07 11:48:15 +08:00
|
|
|
nixpkgs.hostPlatform = "x86_64-linux"; # t2 is x86_64-linux only
|
2022-10-02 17:56:05 +03:00
|
|
|
}
|