The film you're thinking of is Silent Running -
http://en.wikipedia.org/wiki/Silent_Running
It must have been one of the first 'eco' films and looks really dated now but it's still one of my favourites :-)
-Chris