Semigroups and minimality in nearrings