Not similar to nix, but you can look into Yocto. You can use it to generate an OS. It is, much more involved than using nix, but suitable for low memory environments.
Like you would with Yocto, I just build my systems on a proper host then remotely deploy them.
Also it’s very famous and loved in embedded software circles.