If you want to keep everything inside a singular Nix configuration while still using Docker, you can check out the NixOS option virtualisation.oci-containers
- essentially, a declarative way of managing docker/podman containers (similar to docker-compose) but with Nix.
Pretty cool, I might go.