From 91ec603b6209b606ed59e29f9ef65bb07560dfe9 Mon Sep 17 00:00:00 2001 From: mjallen18 Date: Tue, 24 Mar 2026 16:24:23 -0500 Subject: [PATCH] spec --- .../macbook-pro-nixos/default.nix | 2 ++ .../specialisations/asahi-fairydust.nix | 25 +++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 systems/aarch64-linux/macbook-pro-nixos/specialisations/asahi-fairydust.nix diff --git a/systems/aarch64-linux/macbook-pro-nixos/default.nix b/systems/aarch64-linux/macbook-pro-nixos/default.nix index 716a3a1..1ca6552 100755 --- a/systems/aarch64-linux/macbook-pro-nixos/default.nix +++ b/systems/aarch64-linux/macbook-pro-nixos/default.nix @@ -113,6 +113,8 @@ }; }; + specialisation.asahi-fairydust.configuration = import ./specialisations/asahi-fairydust.nix; + nixpkgs.config.allowUnsupportedSystem = true; virtualisation = { diff --git a/systems/aarch64-linux/macbook-pro-nixos/specialisations/asahi-fairydust.nix b/systems/aarch64-linux/macbook-pro-nixos/specialisations/asahi-fairydust.nix new file mode 100644 index 0000000..ac15d65 --- /dev/null +++ b/systems/aarch64-linux/macbook-pro-nixos/specialisations/asahi-fairydust.nix @@ -0,0 +1,25 @@ +{ + 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="; + }; + }) + ) + ); +}