tpwrules / nixos-apple-silicon

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

rust 1.75.0 patch + other fixes #142

Closed yu-re-ka closed 5 months ago

yu-re-ka commented 5 months ago

Fixes #141

CryoMyst commented 5 months ago

Very cool, this seems to be working.

diegobfernandez commented 5 months ago

How can I test this? I tried updating to latest unstable and it's failing, I wonder if this fixes it. I am using channels.

Lederstrumpf commented 5 months ago

How can I test this? I tried updating to latest unstable and it's failing, I wonder if this fixes it. I am using channels.

This may not be the canonical way, but you can clone nixpkgs, checkout @yu-re-ka's branch, and then rebuild your system via nixos-rebuild switch -I nixpkgs=$PATH_TO_NIXPKGS.

(EDIT: How did I write such absolute nonsense 🙈 - I meant "you can clone apple-silicon-support, checkout @yu-re-ka's branch, and then rebuild your system.")

johnbchron commented 5 months ago

How can I test this? I tried updating to latest unstable and it's failing, I wonder if this fixes it. I am using channels.

Alternatively if using flakes:

apple-silicon-support = {
  # url = "github:tpwrules/nixos-apple-silicon";
  url = "github:yu-re-ka/nixos-m1/nixos-unstable-fixes";
};
diegobfernandez commented 5 months ago

Thanks @Lederstrumpf and @johnbchron I combined both approaches :smile:

$ sudo nix-channel --add https://github.com/yu-re-ka/nixos-m1/archive/refs/heads/nixos-unstable-fixes.tar.gz apple-silicon-support-temp-fix
$ sudo nix-channel --update

And then changed the apple-silicon-support in configuration.nix

     [ # Include the results of the hardware scan.
       ./hardware-configuration.nix
       # Include the necessary packages and configuration for Apple Silicon Support.
-      <apple-silicon-support/apple-silicon-support>
+      <apple-silicon-support-temp-fix/apple-silicon-support>
     ];

I can confirm as well this works with nixos unstable.