I am not sure what "varies as depth" means. If it means that pressure is proportional to depth, then the equation pressure = k * depth + density does not work. Indeed, if depth is doubled, then pressure = 2k * depth + pressure, which is not 2(k * depth + pressure) unless pressure = 0.

I think pressure = k * density * depth.