Sedimentary pyrite formation