Commit graph

19 commits

Author SHA1 Message Date
Andre 51e51e6014 chore: format repo using treefmt-nix and nixfmt-rfc-style 2025-06-04 12:35:54 -04:00
mkorje 36d0027ef4 apple/t2: add Wi-Fi and Bluetooth firmware option 2025-03-17 13:01:30 +00:00
Cassie Cheung 05fa89d1c5
apple/t2: migrate renamed option 2025-03-17 15:23:27 +08:00
Cassie Cheung cda8312060 apple/t2: format with nixfmt 2025-02-24 08:09:11 +00:00
Cassie Cheung a0252d668c apple/t2: add option to select kernel release 2025-02-24 08:09:11 +00:00
Cassie Cheung d098b09500 apple/t2: refactor kernel package, add stable kernel
Refactors the kernel package to a generic one and adds support for the
lts kernel. Since nixpkgs' kernel packages provide the `kernelPatches`
override, utilizing that ensures that kernel updates are not delayed
too much due to having to PR them to nixos-hardware separately.

This comes at the expense of possible breakage when upstream updates
something that breaks the patches.

Because the T2 Linux project has a lot of patches which changes
periodically, including them in the repository directly is a maintenance
burden. Instead, this patch comes with an update script and JSON files
containing all of the patches to be downloaded (by fetchurl) and
applied.

The NixOS option to enable changing release versions will be added in
the next commit.
2025-02-24 08:09:11 +00:00
Cassie Cheung 95c8efc0cb apple/t2: remove apple_set_os loader option
the functionality of apple_set_os was upstreamed to the kernel a while
ago and the loader is no longer needed.
2025-02-01 06:18:21 +00:00
Cassie Cheung 2297628136 apple/t2: remove tiny-dfr and related options 2024-12-06 10:23:26 +00:00
Cassie Cheung e1cc1f6483 apple/t2: deprecate enableTinyDfr option and conflict with hardware.apple.touchBar
* Adds a deprecation warning to hardware.apple-t2.enableTinyDfr as it has
  been upstreamed to nixpkgs already. The package and option can be
  removed at the next release cycle to hopefully not break people's setup.

* Adds an assertion to conflict hardware.apple-t2.enableTinyDfr with
  hardware.apple.touchBar. Having both enabled causes both tiny-dfr to
  fight for the same display device.
2024-11-06 18:57:38 +00:00
Reid "reidlab 6f71da566f apple/t2: add tiny-dfr option 2024-10-12 10:16:28 +00:00
Ali Rizvi 32f4fb0b11
apple-t2: remove ifd and cleanup drv 2024-09-15 13:22:44 -04:00
Marcus Wågberg 7e3a3f3170 apple/t2: add tiny-dfr service 2024-04-27 06:39:03 +00:00
Marcus Wågberg 17ad09c30c apple/t2: update to kernel 6.7.7 2024-04-27 06:39:03 +00:00
Jörg Thalheim a15b6e525f apple-t2: avoid import-from-derivation 2023-12-25 22:57:21 +00:00
Olof Sandell e158702cb8 refactor: use nixpkgs naming conventions 2023-09-13 09:46:20 +02:00
Olof Sandell 5e6fa0d4ae feature: enable the iGPU by default 2023-09-13 09:46:20 +02:00
Olof Sandell 5dbebb7cfa feat: copy bootloader to temp location
This is a precaution to make sure we have enough disk space before renaming original bootloader.
2023-09-13 09:46:20 +02:00
Olof Sandell c8cd4f7ef4 feat: integrate into t2 module 2023-09-13 09:46:20 +02:00
kekrby 8e28b9ee43
apple/t2: init
Co-authored-by: networkException <git@nwex.de>
2023-06-28 00:04:56 +02:00