A generator unit is provided for attachment to an agricultural work vehicle with a gear module and a generator module. The gear for the driving of the generator module is connected in a drive system with the generator module, and the gear module and the generator module are hydraulically connected with one another via an integrated cooling and lubricating agent circuit.