nix/hosts/Asahi/README.md

1.2 KiB

Asahi (Apple Silicon)

NixOS on this Mac. Firmware stays out of git. Desktop is the shared Quickshell Hyprland stack; this host only overrides the panel and turns off blur/shadows.

This machine

nix-store --add-fixed sha256 /boot/vendorfw/firmware.cpio
nh os switch -H Asahi

New machine

  1. Install NixOS with the Asahi installer. It writes vendorfw/ to the ESP.

  2. Replace hardware-configuration.nix (nixos-generate-config).

  3. Hash firmware and put it in configuration.nix:

    nix hash file --sri /boot/vendorfw/firmware.cpio
    nix-store --add-fixed sha256 /boot/vendorfw/firmware.cpio
    
  4. Set the panel in desktop.nix (hyprctl monitors).

  5. nh os switch -H Asahi

Firmware update

From macOS, run the Asahi installer and choose “Rebuild vendor firmware package”. Then:

nix hash file --sri /boot/vendorfw/firmware.cpio
nix-store --add-fixed sha256 /boot/vendorfw/firmware.cpio

Put the new SRI in configuration.nix (requireFile.hash) and nh os switch -H Asahi. The running system keeps the old blob until that rebuild.