astro / nix-openwrt-imagebuilder

Build OpenWRT images in Nix derivations
MIT License
129 stars 16 forks source link

Cool - Was just looking to build an image for my 16m device #1

Closed mannp closed 2 years ago

mannp commented 2 years ago

Was just looking to build an image for my 16m device and happened across this :)

Wondered if there was a brief how to use readme at all :)

Cheers

astro commented 2 years ago

Does example.nix work for you?

I agree that a README file must be written.

mannp commented 2 years ago

I did see the example.nix thanks and although I manage a few nix machines in my homelab with flakes, I am very new to them and not entirely clear how to invoke a build with example.nix

I don't want to miss any steps and brick my device :-/

Do I need to create hashes first and update profiles before example.nix, or it does everything we need in the order we need?

Apologies for all the questions :)

astro commented 2 years ago

This project supports both vanilla Nix and Nix flakes. Only for generating hashes (which I already committed for recent OpenWRT releases) I run nix run .#generate-hashes

mannp commented 2 years ago

@astro I closed as I managed to initiate a build, but it stopped due to a 'too many open files' issue, the same as I have had with Robotnix.

I have been unable to resolve it, so parked this until I am able to resolve that error (changing pam limits does not work for me)

Hopefully once I get that resolved I will be back to try this again.

Cheers.

astro commented 2 years ago

Well, this is the issue about a missing README.

Your other issue seems to be an issue with your system configuration if usage of other flakes is affected as well.

mannp commented 2 years ago

I will leave you to close it once the readme is created.