Files
nix-config/systems/aarch64-linux/macbook-pro-nixos/specialisations/asahi-fairydust.nix
mjallen18 91ec603b62 spec
2026-03-24 16:24:23 -05:00

26 lines
827 B
Nix

{
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=";
};
})
)
);
}