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

Minimal configuration.nix of flakes.nix that just works #57

Closed gnull closed 1 month ago

gnull commented 1 month ago

Hi!

Is it possible to make a minimal configuration.nix (or flake.nix) that one can copy to step 3 (after doing nixos-generate-config) to get the device running? I'm running Orange Pi 5 Plus.

I tried looking at this repo and couldn't really understand what I need to add to the result of nixos-generate-config to get the board running. I don't know what is colmena and would just like to use Nix with nixos-rebuild switch in the device. I'm guessing there may be more users like me.

Ivan

HeroBrine1st commented 1 month ago

I don't exactly know how to create a configuration.nix standalone, but I can propose you to see my early flake (but for base opi5): https://github.com/HeroBrine1st/flake/tree/a6d5bc20f31ca3ae9b2b90d17be3a1a76f57645f

Actually you only need flake.nix, everything else is the same. And don't lock your system on this flake's nixpkgs, it was my mistake and I addressed it later.

gnull commented 1 month ago

@HeroBrine1st thanks a lot! I've adapted your config for my case, seems to be what I was looking for.

Also, greatly appreciated flakes book by @ryan4yin (just realized that this repo's author is the one who wrote it), it gave me all I needed to start using flakes.nix.