Inhomogeneous superconductivity in disordered metals