The department may, with the approval of the Department of General Services, enter into a cooperative agreement, upon such terms and under such conditions as he deems wise, for any of the following purposes, with any county, city, or district which makes an appropriation for any such purpose: