Files
nix-config/systems/aarch64-linux/macbook-pro-nixos/specialisations/asahi-fairydust.nix
mjallen18 70002a19e2 hmm
2026-04-07 18:39:42 -05:00

26 lines
827 B
Nix
Executable File

{
lib,
pkgs,
...
}:
{
# Override the Asahi kernel source and version by setting boot.kernelPackages
# directly. The nixos-apple-silicon module would normally set this from
# linux-asahi via the overlay, but we bypass that here and use linuxPackagesFor
# with the kernel overridden in place. lib.mkOverride 90 beats the module's
# lib.mkDefault (priority 1000) but loses to explicit user overrides.
boot.kernelPackages = lib.mkOverride 90 (
pkgs.linuxPackagesFor (
pkgs.linux-asahi.kernel.overrideAttrs (_: {
version = "6.18.10";
src = pkgs.fetchFromGitHub {
owner = "AsahiLinux";
repo = "linux";
rev = "61b6e714dd19b7bee1c0e6ec4234199e640c2932";
hash = "sha256-5eAgJTKcRdjEFzHDSrh/XReaT6Db9YN2RN1SwOs28NE=";
};
})
)
);
}