This is a standard theorem in linear algebra over fields that is still true when working over an integral domain.
For a commutative unital integral domain $R$, let $A$ be an $n\times n$ matrix with entries in $R$. The system of linear equations $A\mathbf{x}=0$ has a non-zero solution if and only if $\det(A) = 0$.
The forward direction of this statement is not true though if we are working over a ring $R$ that is not an integral domain, a counter example being $$ R = \boldsymbol{Z}_6 \qquad A = \begin{pmatrix} 3 & 0 \\ 0 & 3 \end{pmatrix} \qquad \mathbf{x} = \begin{pmatrix} 2 \\ 2 \end{pmatrix} \,. $$
But what about the other direction? Does $\det(A) = 0$ imply that $A\mathbf{x} = 0$ has a non-zero solution over an arbitrary commutative unital ring? I've played around for a bit, and have yet to find a counterexample.