nix-community / nixos-generators

Collection of image builders [maintainer=@Lassulus]
MIT License
1.66k stars 132 forks source link

RPi zero/1/2 support? #84

Open bensleveritt opened 3 years ago

bensleveritt commented 3 years ago

Is it possible to build RPi 0/1/2 images with this tool at the moment? I can only see a reference to RPi 3 devices at present.

Lassulus commented 3 years ago

there is no image for arm6 raspberries right now. So basically no. As I also lack hardware to test that, someone else has to test/verify/contribute that.

bensleveritt commented 3 years ago

Ah! So not a technical limitation? I'm game for trying to set up arm6 support, any tips on how to start?

Lassulus commented 3 years ago

technically it should work if it works with nixpkgs, you can try to follow this https://nixos.wiki/wiki/NixOS_on_ARM/Raspberry_Pi and "cross" compiling with binfmt should also be possible. Stuff could take a while to build, since I guess there is no binary cache for this architecture.

Chris2011 commented 1 year ago

Hey @bensleveritt did you already try smth here? I already need one for my PI 1 and 2 :D. Maybe you already started and succeeded or stuck somewhere?

bensleveritt commented 1 year ago

I never managed it, but I'd be up for collaborating if you're interested