Text this: Definability of linear equation systems over groups and rings