Build docker images "derived" from NixOS module?

Update: I found this older post, which is also what I am looking for:

@augu5te I saw you commented on this topic with a few options, but I don’t think any of these tools really meet my expectations. What would you do for my given scenario? Just manually reproduce the necessary module options for the docker image, or is there some kind of new tool specifically for this usecase?