ryan4yin / nixos-rk3588

Minimal NixOS running on RK3588/RK3588s based SBC(Orange Pi 5 Plus, Orange Pi 5, Rock 5A, etc)
MIT License
156 stars 28 forks source link

nixos-anywhere?, nix-install, nix-generators #7

Closed i-am-logger closed 8 months ago

i-am-logger commented 1 year ago

have you thought of integrating this with nixos-anywhere, nix-install nix-generators?

I'll be happy to help.

ryan4yin commented 1 year ago

Flashing a raw image into SD card / SSD directly is enough for me. What are the benefits of nix-anywhere / nix-generators in this scenario?

i-am-logger commented 1 year ago

just to be able to update it remotely... it is something I aam working towards to with the orange pi 5 plus. the way nixos-anywhere works it will load a new installer kernel, boot to it, then do the reinstall - that can also mean repartitions.

ryan4yin commented 1 year ago

As for remote deployment, I've already provided a demo for it:

https://github.com/ryan4yin/nixos-rk3588/tree/main/demo

i-am-logger commented 1 year ago

yes, i rather use the normal nixos-rebuild switch with remote endpoint or the nixos-anywhere... its ok, i'll continue on it at a fork.

i-am-logger commented 1 year ago

great work btw! and as i have it setup with debugger, let me know if you want me to tests some stuff.

ryan4yin commented 1 year ago

its ok, i'll continue on it at a fork.

Or could this be another demo? Something like my colmena demo, where the changes to the original flake are minimal and that's acceptable to me.

ryan4yin commented 1 year ago

You can do your work on your fork first, and I'll see how much it's changed when it's done.

i-am-logger commented 1 year ago

btw, have you looked at https://github.com/orangepi-xunlong/orangepi-build/tree/next

any plans to update to kernel 6.x?

ryan4yin commented 1 year ago

@realsnick I have no plans to upgrade to the latest kernel for the time being, but I will keep an eye on the progress of the upstream https://github.com/armbian/build

i-am-logger commented 1 year ago

thank you @ryan4yin if there is any guideline on updating the kernel i can pick up on it maybe early beginning of 2024

ryan4yin commented 8 months ago

@realsnick FYI, I've just added UEFI support for rk3588, it should supports nixos-anywhere, nixos-install & nixos-generators seamlessly! looking for any tests & feedback.

https://github.com/ryan4yin/nixos-rk3588/blob/main/UEFI.md

In fact I've already use nixos-generators to generate UEFI disk image:

https://github.com/ryan4yin/nixos-rk3588/blob/62396839e562d83cd59ec440ba515cca4f02704b/flake.nix#L125-L127


BTW, I'm working on UEFI Secure Boot + NixOS + LUKS on rk3588, details: https://github.com/ryan4yin/nix-config/pull/74

i-am-logger commented 8 months ago

sweet! will check it out!!!