tpwrules / nixos-apple-silicon

Resources to install NixOS bare metal on Apple Silicon Macs
MIT License
742 stars 73 forks source link

asahi-nvram: add asahi-nvram 0.2.1 #179

Closed lukaslihotzki closed 2 months ago

lukaslihotzki commented 3 months ago

This PR adds the asahi-nvram tool. The other tools (asahi-bless, asahi-btsync, asahi-wifisync) should be similar.

tpwrules commented 3 months ago

It is certainly not attractive that the primary documentation I can find on these tools is "May or may not result in you having to perform a dfu restore.".

I had a brief look though and it seems that they are available in Fedora but not installed by default. Of note, I don't think asahi-wifisync will do much because we do not ship iwd by default.

asahi-bless looks pretty useful though, and harder to break things with, I'd be fine with just doing that one.

alyssais commented 3 months ago

Wouldn't it make more sense to put this in Nixpkgs?

tpwrules commented 3 months ago

I would prefer that, yes.

lukaslihotzki commented 3 months ago

Ok, I can try to contribute these packages to nixpkgs. After this, it would make sense to also upstream asahi-fwextract, bankstown-lv2, and speakersafetyd.

tpwrules commented 3 months ago

I'm not so sure about asahi-fwexctract since it has to match closely with the other components.

flokli commented 2 months ago

@lukaslihotzki did you start sending PRs already? Was looking for these tools today, and couldn't find them here or in nixpkgs.

lukaslihotzki commented 2 months ago

I have now opened a PR in nixpkgs. I don't know if this will get merged there, but at least the branch can be used manually.

lukaslihotzki commented 2 months ago

Now upstreamed by https://github.com/NixOS/nixpkgs/pull/302205