German energy major RWE AG (ETR:RWE) on Tuesday agreed with the federal government to end lignite-based electricity generation eight years early in 2030, without any additional compensation for the company.