NixOS on the new Apple Macbook M1?

Hello,
I’m wondering is it possible to install NixOS on a newer MacBook Pro M1? I have to admit, I didn’t notice that Apple has a new Chip out. It is arm “based” from what I read, so I fear that the arm installation guide doesn’t apply and I have to use a VM?

Thanks for clarifying this for me!
Regards
Eike

1 Like

In theory, the ARM installation guide would apply, but kernel and bootloader support aren’t really ready yet (though they’re getting very close). Keep an eye on Asahi Linux: https://asahilinux.org/

For now, though, you probably want to use a VM or Nix on macOS.

2 Likes

Thank you very much for your answer and the link to asahilinux, I didn’t know about it. I then will try to run a VM or use a different device even.

Any progress on NixOS on M1? Anyone tried it?

the problem is that the NixOS modules are pretty linux specific. If you want to have a NixOS-like experience, you should look into GitHub - LnL7/nix-darwin: nix modules for darwin

1 Like

I think they were talking about the status of adapting NixOS to use Asahi Linux’ work, not nix-darwin on macOS.

2 Likes

Oh, sorry.

IIRC, all of the asahi work is being upstreamed to the kernel. So eventually it will just be specifying a newer kernel.

2 Likes

It also requires a fairly involved boot loader.

5 Likes

Asahi Linux recently had their first formal release. They only officially support Arch Linux ARM, but their wiki links this guide to installing NixOS: https://github.com/tpwrules/nixos-m1/blob/504cf6108bdb4fc6a1aff5f455fbcac623bfa313/docs/uefi-standalone.md

2 Likes

Asahi Linux has switched from Arch Linux arm to Fedora Linux. Fedora Asahi Remix - Asahi Linux

Maybe we can have a NixOS Asahi Remix :smile: