Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with building m1n1 (nix on macos) #173

Open
ntrp opened this issue Mar 9, 2024 · 6 comments
Open

Issues with building m1n1 (nix on macos) #173

ntrp opened this issue Mar 9, 2024 · 6 comments

Comments

@ntrp
Copy link

ntrp commented Mar 9, 2024

Hi I am following the step by step docu and I am stuck on the first step, when I run the command inside the repository I get:
error: flake 'git+file:///Users/ntrp/_pws/nixos-apple-silicon' does not provide attribute 'packages.aarch64-darwin.m1n1', 'legacyPackages.aarch64-darwin.m1n1' or 'm1n1'

Any idea what am I doing wrong? Bear in mind I have nix on macos..

@mi-skam
Copy link

mi-skam commented Mar 9, 2024

You cannot build it on darwin, you either need to run it in on a vm (I use UTM) or a different NixOS machine

@tpwrules
Copy link
Owner

tpwrules commented Mar 9, 2024

This is correct, you need a Linux machine to build stuff. Either aarch64 or x86_64 is fine.

I suggest using the prebuilt ISO available from the Releases page. Then you don’t have to compile anything yourself.

@lovesegfault
Copy link

There's always https://daiderd.com/nix-darwin/manual/index.html#opt-nix.linux-builder.enable

@tpwrules
Copy link
Owner

tpwrules commented Mar 9, 2024

I had noticed that but hadn’t had an opportunity to try it or vet it for this application. I guess the actual VM is in Nixpkgs but nix-darwin just helps set it up with the system? Are there docs anywhere?

@lovesegfault
Copy link

I guess the actual VM is in Nixpkgs but nix-darwin just helps set it up with the system?

AIUI, yes.

I'm not sure about more in-depth docs, but the setup is pretty trivial with nix-darwin, works seamlessly.

@ntrp
Copy link
Author

ntrp commented Mar 14, 2024

Ah ok, I did not even realize there is a prebuilt ISO, works great for me. I will try that one in the meantime!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants