Homological algebra in characteristic one