You can build docker images with nix, in which case you can have every dependency be its own layer.
That is clearly not what these people are doing, though.