It sounds like the fix will be available in nixos 23.05 very soon. It’s already in nixos unstable.
I hope this doesn’t discourage you from trying nixos. I’ve only been using it for a few weeks, but I’ve been really happy with what I’ve seen–among many other things, you can tweak or upgrade your system entirely risk-free because it takes just a few seconds to roll back if anything goes wrong. Of course there’s a big learning curve if you’re coming from a more traditional distro, which is the main reason you don’t see more people using it.
I simply pasted this in configuration.nix next to virtualisation.docker.enable = true; and it’s a little bit nicer than pinning the entire nixpkgs to an earlier version.
In a little while when the fix gets pushed through I’ll remove this snippet again.
I believe the fix has not been implemented yet for Docker Compose. The docker command apparently runs, but docker compose still has issues.
I won’t link the Github issue again (to avoid the Discourse bot continuing to clutter the issue thread) but you can follow the link in this previous comment to track the latest: