Deploying docker containers declaratively

I am thinking of exploring systemd-nspawn - ArchWiki with Nixos Containers

https://nixos.org/nixos/manual/index.html#ch-containers