This paper describes the construction of equilibrium configurations for smectic-A liquid crystals subjected to nonuniform physical boundary conditions, with two-dimensional dependence on the director and layer normal, and a nonlinear layer function. Euler-Lagrange equations are constructed that describe key properties of liquid crystals confined between two boundaries exhibiting spatial imperfections. The results of the model are shown to be consistent with previous published findings in simple domains while results are obtained on how the structure of the liquid crystals changes in response to boundary perturbations. Domain sizes are considered representing those currently used in applications while predictions in smaller domains at the limit of current technologies are also made. In particular, it is shown that the curvature along a boundary impacts on the liquid crystal's structure distant from the boundary feature and therefore previously developed mathematical models, that essentially reduced the problem to a single spatial dimension, cannot be used in such circumstances. Consequences for practical applications are briefly discussed.