nixos-hardware/apple
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
..
imac drop acpi_call from nixos-hardware 2024-12-02 12:33:14 +01:00
macbook-air remove broadcom_sta since it was likely already added by nixos-generate-hardware 2024-10-31 09:53:19 +00:00
macbook-pro drop acpi_call from nixos-hardware 2024-12-02 12:33:14 +01:00
macmini fix 24.05 evaluation 2024-06-21 23:50:11 +02:00
t2 apple/t2: refactor kernel package, add stable kernel 2025-02-24 08:09:11 +00:00
default.nix macbook: add README.md to describe switching Cmd and Alt/AltGr 2020-11-03 10:19:25 +02:00
README.md macbook: add README.md to describe switching Cmd and Alt/AltGr 2020-11-03 10:19:25 +02:00

Switching Cmd and Alt/AltGr

This will switch the left Alt and Cmd key as well as the right Alt/AltGr and Cmd key.

boot.kernelParams = [
  "hid_apple.swap_opt_cmd=1"
];

Reference: https://wiki.archlinux.org/index.php/Apple_Keyboard#Switching_Cmd_and_Alt/AltGr