I created a little wrapper around nixos modules to configure my openwrt router using openwrt’s uci.
It even has support for secrets based on sops!
Check it out here: dotfiles/openwrt at master · Mic92/dotfiles · GitHub
It is not intended as a self-standing project but more as inspiriation in case someone else wants to pick up the idea.