https://mitchellh.com/writing/nix-with-dockerfiles
yeah I have seen that nix containers can be light, closer to alpine containers in size, so you have an advantage of having a glibc based container system which is skimmed to minimum and it works.